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