APIdia Launch Partner
Top Description Fields Constructors
javax.net.ssl

public Class SSLException

extends IOException
Class Inheritance
Known Direct Subclasses
javax.net.ssl.SSLHandshakeException, javax.net.ssl.SSLKeyException, javax.net.ssl.SSLPeerUnverifiedException, javax.net.ssl.SSLProtocolException
Imports
java.io.IOException

Indicates some kind of error detected by an SSL subsystem. This class is the general class of exceptions produced by failed SSL-related operations.
Author
David Brownell
Since
1.4

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
SSLException(String
describes the problem.
reason
)

Constructs an exception reporting an error found by an SSL subsystem.

public
SSLException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Throwable
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.)
cause
)

Creates a SSLException with the specified detail message and cause.

public
SSLException(Throwable
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.)
cause
)

Creates a SSLException with the specified cause and a detail message of (cause==null ?

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Annotations
@Serial

Constructor Detail

SSLExceptionback to summary
public SSLException(String reason)

Constructs an exception reporting an error found by an SSL subsystem.

Parameters
reason:String

describes the problem.

SSLExceptionback to summary
public SSLException(String message, Throwable cause)

Creates a SSLException with the specified detail message and cause.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

cause:Throwable

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
SSLExceptionback to summary
public SSLException(Throwable 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:Throwable

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