javax.net.ssl
Class SSLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by javax.net.ssl.SSLException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SSLHandshakeException, SSLKeyException, SSLPeerUnverifiedException, SSLProtocolException

public class SSLException
extends IOException

The superclass of all possible SSL exceptions. Usually, a specific exception is thrown instead of this exception.

Since:
1.4
See Also:
Serialized Form

Constructor Summary
SSLException(String message)
          Create a new instance with a descriptive error message.
SSLException(String message, Throwable cause)
          Create a new instance with a descriptive error message and a cause.
SSLException(Throwable cause)
          Create a new instance with a cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSLException

public SSLException(String message)
Create a new instance with a descriptive error message.

Parameters:
message - the descriptive error message

SSLException

public SSLException(String message,
                    Throwable cause)
Create a new instance with a descriptive error message and a cause.

Parameters:
message - the descriptive error message
cause - the cause
Since:
1.5

SSLException

public SSLException(Throwable cause)
Create a new instance with a cause.

Parameters:
cause - the cause
Since:
1.5