Top Description Fields Constructors Methods
org.bouncycastle.est

public Class ESTException

extends IOException
Class Inheritance
Imports
java.io.ByteArrayInputStream, .ByteArrayOutputStream, .IOException, .InputStream

Exception emitted by EST classes.

Field Summary

Modifier and TypeField and Description
private InputStream
private Throwable
private static final long
private int

Constructor Summary

AccessConstructor and Description
public
public
public
ESTException(String message, Throwable cause, int statusCode, InputStream body)

Method Summary

Modifier and TypeMethod and Description
public InputStream
public Throwable
getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

public int

Field Detail

bodyback to summary
private InputStream body
causeback to summary
private Throwable cause

Hides java.lang.Throwable.cause.

MAX_ERROR_BODYback to summary
private static final long MAX_ERROR_BODY
statusCodeback to summary
private int statusCode

Constructor Detail

ESTExceptionback to summary
public ESTException(String msg)
ESTExceptionback to summary
public ESTException(String msg, Throwable cause)
ESTExceptionback to summary
public ESTException(String message, Throwable cause, int statusCode, InputStream body)

Method Detail

getBodyback to summary
public InputStream getBody()
getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Doc from java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

Returns:Throwable

the cause of this throwable or null if the cause is nonexistent or unknown.

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

getStatusCodeback to summary
public int getStatusCode()