< prev index next >

src/java.base/share/classes/javax/net/ssl/SSLException.java

Print this page




  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 package javax.net.ssl;
  28 
  29 import java.io.IOException;
  30 
  31 /**
  32  * Indicates some kind of error detected by an SSL subsystem.
  33  * This class is the general class of exceptions produced
  34  * by failed SSL-related operations.
  35  *
  36  * @since 1.4
  37  * @author David Brownell
  38  */
  39 public
  40 class SSLException extends IOException
  41 {

  42     private static final long serialVersionUID = 4511006460650708967L;
  43 
  44     /**
  45      * Constructs an exception reporting an error found by
  46      * an SSL subsystem.
  47      *
  48      * @param reason describes the problem.
  49      */
  50     public SSLException(String reason)
  51     {
  52         super(reason);
  53     }
  54 
  55     /**
  56      * Creates a {@code SSLException} with the specified
  57      * detail message and cause.
  58      *
  59      * @param message the detail message (which is saved for later retrieval
  60      *          by the {@link #getMessage()} method).
  61      * @param cause the cause (which is saved for later retrieval by the




  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 
  27 package javax.net.ssl;
  28 
  29 import java.io.IOException;
  30 
  31 /**
  32  * Indicates some kind of error detected by an SSL subsystem.
  33  * This class is the general class of exceptions produced
  34  * by failed SSL-related operations.
  35  *
  36  * @since 1.4
  37  * @author David Brownell
  38  */
  39 public
  40 class SSLException extends IOException
  41 {
  42     @java.io.Serial
  43     private static final long serialVersionUID = 4511006460650708967L;
  44 
  45     /**
  46      * Constructs an exception reporting an error found by
  47      * an SSL subsystem.
  48      *
  49      * @param reason describes the problem.
  50      */
  51     public SSLException(String reason)
  52     {
  53         super(reason);
  54     }
  55 
  56     /**
  57      * Creates a {@code SSLException} with the specified
  58      * detail message and cause.
  59      *
  60      * @param message the detail message (which is saved for later retrieval
  61      *          by the {@link #getMessage()} method).
  62      * @param cause the cause (which is saved for later retrieval by the


< prev index next >