src/share/classes/java/security/cert/CertificateException.java

Print this page




  40     /**
  41      * Constructs a certificate exception with no detail message. A detail
  42      * message is a String that describes this particular exception.
  43      */
  44     public CertificateException() {
  45         super();
  46     }
  47 
  48     /**
  49      * Constructs a certificate exception with the given detail
  50      * message. A detail message is a String that describes this
  51      * particular exception.
  52      *
  53      * @param msg the detail message.
  54      */
  55     public CertificateException(String msg) {
  56         super(msg);
  57     }
  58 
  59     /**
  60      * Creates a <code>CertificateException</code> with the specified
  61      * detail message and cause.
  62      *
  63      * @param message the detail message (which is saved for later retrieval
  64      *        by the {@link #getMessage()} method).
  65      * @param cause the cause (which is saved for later retrieval by the
  66      *        {@link #getCause()} method).  (A <tt>null</tt> value is permitted,
  67      *        and indicates that the cause is nonexistent or unknown.)
  68      * @since 1.5
  69      */
  70     public CertificateException(String message, Throwable cause) {
  71         super(message, cause);
  72     }
  73 
  74     /**
  75      * Creates a <code>CertificateException</code> with the specified cause
  76      * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
  77      * (which typically contains the class and detail message of
  78      * <tt>cause</tt>).
  79      *
  80      * @param cause the cause (which is saved for later retrieval by the
  81      *        {@link #getCause()} method).  (A <tt>null</tt> value is permitted,
  82      *        and indicates that the cause is nonexistent or unknown.)
  83      * @since 1.5
  84      */
  85     public CertificateException(Throwable cause) {
  86         super(cause);
  87     }
  88 }


  40     /**
  41      * Constructs a certificate exception with no detail message. A detail
  42      * message is a String that describes this particular exception.
  43      */
  44     public CertificateException() {
  45         super();
  46     }
  47 
  48     /**
  49      * Constructs a certificate exception with the given detail
  50      * message. A detail message is a String that describes this
  51      * particular exception.
  52      *
  53      * @param msg the detail message.
  54      */
  55     public CertificateException(String msg) {
  56         super(msg);
  57     }
  58 
  59     /**
  60      * Creates a {@code CertificateException} with the specified
  61      * detail message and cause.
  62      *
  63      * @param message the detail message (which is saved for later retrieval
  64      *        by the {@link #getMessage()} method).
  65      * @param cause the cause (which is saved for later retrieval by the
  66      *        {@link #getCause()} method).  (A <tt>null</tt> value is permitted,
  67      *        and indicates that the cause is nonexistent or unknown.)
  68      * @since 1.5
  69      */
  70     public CertificateException(String message, Throwable cause) {
  71         super(message, cause);
  72     }
  73 
  74     /**
  75      * Creates a {@code CertificateException} with the specified cause
  76      * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
  77      * (which typically contains the class and detail message of
  78      * <tt>cause</tt>).
  79      *
  80      * @param cause the cause (which is saved for later retrieval by the
  81      *        {@link #getCause()} method).  (A <tt>null</tt> value is permitted,
  82      *        and indicates that the cause is nonexistent or unknown.)
  83      * @since 1.5
  84      */
  85     public CertificateException(Throwable cause) {
  86         super(cause);
  87     }
  88 }