1. /*
  2. * @(#)CertificateEncodingException.java 1.12 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.cert;
  8. /**
  9. * Certificate Encoding Exception. This is thrown whenever an error
  10. * occurs while attempting to encode a certificate.
  11. *
  12. * @author Hemma Prafullchandra
  13. * 1.12
  14. */
  15. public class CertificateEncodingException extends CertificateException {
  16. private static final long serialVersionUID = 6219492851589449162L;
  17. /**
  18. * Constructs a CertificateEncodingException with no detail message. A
  19. * detail message is a String that describes this particular
  20. * exception.
  21. */
  22. public CertificateEncodingException() {
  23. super();
  24. }
  25. /**
  26. * Constructs a CertificateEncodingException with the specified detail
  27. * message. A detail message is a String that describes this
  28. * particular exception.
  29. *
  30. * @param message the detail message.
  31. */
  32. public CertificateEncodingException(String message) {
  33. super(message);
  34. }
  35. /**
  36. * Creates a <code>CertificateEncodingException</code> with the specified
  37. * detail message and cause.
  38. *
  39. * @param message the detail message (which is saved for later retrieval
  40. * by the {@link #getMessage()} method).
  41. * @param cause the cause (which is saved for later retrieval by the
  42. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  43. * and indicates that the cause is nonexistent or unknown.)
  44. * @since 1.5
  45. */
  46. public CertificateEncodingException(String message, Throwable cause) {
  47. super(message, cause);
  48. }
  49. /**
  50. * Creates a <code>CertificateEncodingException</code>
  51. * with the specified cause and a detail message of
  52. * <tt>(cause==null ? null : cause.toString())</tt>
  53. * (which typically contains the class and detail message of
  54. * <tt>cause</tt>).
  55. *
  56. * @param cause the cause (which is saved for later retrieval by the
  57. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  58. * and indicates that the cause is nonexistent or unknown.)
  59. * @since 1.5
  60. */
  61. public CertificateEncodingException(Throwable cause) {
  62. super(cause);
  63. }
  64. }