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