Package org.conscrypt
Class AlertException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.conscrypt.AlertException
- All Implemented Interfaces:
Serializable
public class AlertException extends RuntimeException
This exception is used to signal that a fatal alert has occurred while working through the
protocol.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedAlertException(byte description, SSLException reason)Constructs the instance. -
Method Summary
Modifier and Type Method Description protected bytegetDescriptionCode()Returns alert's description code.protected SSLExceptiongetReason()Returns the reason of alert.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AlertException
Constructs the instance.- Parameters:
description- The alert description code fromAlertProtocolreason- The SSLException to be thrown to application side after alert processing (sending the record with alert, shutdown work, etc).- See Also:
AlertProtocol
-
-
Method Details
-
getReason
Returns the reason of alert. This reason should be rethrown after alert processing.- Returns:
- the reason of alert.
-
getDescriptionCode
protected byte getDescriptionCode()Returns alert's description code.- Returns:
- alert description code from
AlertProtocol - See Also:
for more information about possible reason codes.
-