javax.net.ssl
public class: SSLException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
javax.net.ssl.SSLException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SSLKeyException, SSLPeerUnverifiedException, SSLProtocolException, SSLHandshakeException
Indicates some kind of error detected by an SSL subsystem.
This class is the general class of exceptions produced
by failed SSL-related operations.
- since:
1.4
-
- author:
David
- Brownell
Constructor: |
public SSLException(String reason) {
super(reason);
}
Constructs an exception reporting an error found by
an SSL subsystem. Parameters:
reason - describes the problem.
|
public SSLException(Throwable cause) {
super(cause == null ? null : cause.toString());
initCause(cause);
}
Creates a SSLException with the specified cause
and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause). Parameters:
cause - the cause (which is saved for later retrieval by the
#getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)
- since:
1.5 -
|
public SSLException(String message,
Throwable cause) {
super(message);
initCause(cause);
}
Creates a SSLException with the specified
detail message and cause. Parameters:
message - the detail message (which is saved for later retrieval
by the #getMessage() method).
cause - the cause (which is saved for later retrieval by the
#getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)
- since:
1.5 -
|
Methods from java.lang.Throwable: |
---|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getStackTraceDepth, getStackTraceElement, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |