1 /* 2 * @(#)InvalidParameterException.java 1.20 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.security; 9 10 /** 11 * This exception, designed for use by the JCA/JCE engine classes, 12 * is thrown when an invalid parameter is passed 13 * to a method. 14 * 15 * @author Benjamin Renaud 16 * @version 1.20, 03/12/19 17 */ 18 19 public class InvalidParameterException extends IllegalArgumentException { 20 21 private static final long serialVersionUID = -857968536935667808L; 22 23 /** 24 * Constructs an InvalidParameterException with no detail message. 25 * A detail message is a String that describes this particular 26 * exception. 27 */ 28 public InvalidParameterException() { 29 super(); 30 } 31 32 /** 33 * Constructs an InvalidParameterException with the specified 34 * detail message. A detail message is a String that describes 35 * this particular exception. 36 * 37 * @param msg the detail message. 38 */ 39 public InvalidParameterException(String msg) { 40 super(msg); 41 } 42 } 43