FileDocCategorySizeDatePackage
AlertException.javaAPI DocAndroid 1.5 API2323Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.provider.jsse

AlertException

public class AlertException extends RuntimeException
This exception is used to signalize the fatal alert occured during the work of protocol.

Fields Summary
private final SSLException
reason
private final byte
description
Constructors Summary
protected AlertException(byte description, SSLException reason)
Constructs the instance.

param
description: The alert description code.
see
org.apache.harmony.xnet.provider.jsse.AlertProtocol
param
reason: The SSLException to be thrown to application side after alert processing (sending the record with alert, shoutdown work, etc).

        super(reason);
        this.reason = reason;
        this.description = description;
    
Methods Summary
protected bytegetDescriptionCode()
Returns alert's description code.

return
byte value describing the occured alert.
see
org.apache.harmony.xnet.provider.jsse.AlertProtocol for more information about possible reason codes.

        return description;
    
protected javax.net.ssl.SSLExceptiongetReason()
Returns the reason of alert. This reason should be rethrown after alert protcessin.

return
the reason of alert.

        return reason;