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. 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.20, 03/12/19
  15. */
  16. public class InvalidParameterException extends IllegalArgumentException {
  17. private static final long serialVersionUID = -857968536935667808L;
  18. /**
  19. * Constructs an InvalidParameterException with no detail message.
  20. * A detail message is a String that describes this particular
  21. * exception.
  22. */
  23. public InvalidParameterException() {
  24. super();
  25. }
  26. /**
  27. * Constructs an InvalidParameterException with the specified
  28. * detail message. A detail message is a String that describes
  29. * this particular exception.
  30. *
  31. * @param msg the detail message.
  32. */
  33. public InvalidParameterException(String msg) {
  34. super(msg);
  35. }
  36. }