1. /*
  2. * @(#)InvalidAlgorithmParameterException.java 1.14 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 is the exception for invalid or inappropriate algorithm parameters.
  10. *
  11. * @author Jan Luehe
  12. *
  13. * @version 1.14, 12/19/03
  14. *
  15. * @see AlgorithmParameters
  16. * @see java.security.spec.AlgorithmParameterSpec
  17. *
  18. * @since 1.2
  19. */
  20. public class InvalidAlgorithmParameterException
  21. extends GeneralSecurityException {
  22. private static final long serialVersionUID = 2864672297499471472L;
  23. /**
  24. * Constructs an InvalidAlgorithmParameterException with no detail
  25. * message.
  26. * A detail message is a String that describes this particular
  27. * exception.
  28. */
  29. public InvalidAlgorithmParameterException() {
  30. super();
  31. }
  32. /**
  33. * Constructs an InvalidAlgorithmParameterException with the specified
  34. * detail message.
  35. * A detail message is a String that describes this
  36. * particular exception.
  37. *
  38. * @param msg the detail message.
  39. */
  40. public InvalidAlgorithmParameterException(String msg) {
  41. super(msg);
  42. }
  43. /**
  44. * Creates a <code>InvalidAlgorithmParameterException</code> with the
  45. * specified detail message and cause.
  46. *
  47. * @param message the detail message (which is saved for later retrieval
  48. * by the {@link #getMessage()} method).
  49. * @param cause the cause (which is saved for later retrieval by the
  50. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  51. * and indicates that the cause is nonexistent or unknown.)
  52. * @since 1.5
  53. */
  54. public InvalidAlgorithmParameterException(String message, Throwable cause) {
  55. super(message, cause);
  56. }
  57. /**
  58. * Creates a <code>InvalidAlgorithmParameterException</code> with the
  59. * specified cause and a detail message of
  60. * <tt>(cause==null ? null : cause.toString())</tt>
  61. * (which typically contains the class and detail message of
  62. * <tt>cause</tt>).
  63. *
  64. * @param cause the cause (which is saved for later retrieval by the
  65. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  66. * and indicates that the cause is nonexistent or unknown.)
  67. * @since 1.5
  68. */
  69. public InvalidAlgorithmParameterException(Throwable cause) {
  70. super(cause);
  71. }
  72. }