1. /*
  2. * @(#)KeyManagementException.java 1.18 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 general key management exception for all operations
  10. * dealing with key management. Examples of subclasses of
  11. * KeyManagementException that developers might create for
  12. * giving more detailed information could include:
  13. *
  14. * <ul>
  15. * <li>KeyIDConflictException
  16. * <li>KeyAuthorizationFailureException
  17. * <li>ExpiredKeyException
  18. * </ul>
  19. *
  20. * @version 1.18 03/12/19
  21. * @author Benjamin Renaud
  22. *
  23. * @see Key
  24. * @see KeyException
  25. */
  26. public class KeyManagementException extends KeyException {
  27. private static final long serialVersionUID = 947674216157062695L;
  28. /**
  29. * Constructs a KeyManagementException with no detail message. A
  30. * detail message is a String that describes this particular
  31. * exception.
  32. */
  33. public KeyManagementException() {
  34. super();
  35. }
  36. /**
  37. * Constructs a KeyManagementException with the specified detail
  38. * message. A detail message is a String that describes this
  39. * particular exception.
  40. *
  41. * @param msg the detail message.
  42. */
  43. public KeyManagementException(String msg) {
  44. super(msg);
  45. }
  46. /**
  47. * Creates a <code>KeyManagementException</code> with the specified
  48. * detail message and cause.
  49. *
  50. * @param message the detail message (which is saved for later retrieval
  51. * by the {@link #getMessage()} method).
  52. * @param cause the cause (which is saved for later retrieval by the
  53. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  54. * and indicates that the cause is nonexistent or unknown.)
  55. * @since 1.5
  56. */
  57. public KeyManagementException(String message, Throwable cause) {
  58. super(message, cause);
  59. }
  60. /**
  61. * Creates a <code>KeyManagementException</code> with the specified cause
  62. * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
  63. * (which typically contains the class and detail message of
  64. * <tt>cause</tt>).
  65. *
  66. * @param cause the cause (which is saved for later retrieval by the
  67. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  68. * and indicates that the cause is nonexistent or unknown.)
  69. * @since 1.5
  70. */
  71. public KeyManagementException(Throwable cause) {
  72. super(cause);
  73. }
  74. }