borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.util
ErrorResponse component
java.lang.Object
+----borland.jbcl.util.ErrorResponse
About the ErrorResponse component
Variables Constructors Properties Methods
The ErrorResponse class is used to collect a response to an error from a component. It contains three constants that provide possible responses: abort, ignore, and retry. It also has three methods that return one of the three responses, three boolean properties that test for the responses, and a response property that holds the response value.
ErrorResponse variables
Variables implemented in this class
ErrorResponse constructors
ErrorResponse properties
*Read-only properties **Write-only properties
Properties implemented in this class
ErrorResponse methods
Methods implemented in this class
ErrorResponse variables
ABORT
public static final int ABORT = 1
The response is abort.
IGNORE
public static final int IGNORE = 2
The response is ignore.
RETRY
public static final int RETRY = 3
The response is retry.
ErrorResponse constructors
ErrorResponse()
public ErrorResponse()
Constructs an ErrorResponse object with a default response of ABORT.
ErrorResponse properties
abort
public final boolean isAbort()
Tests to see if the response is ABORT. If it returns true, the response is ABORT.
ignore
public final boolean isIgnore()
Tests to see if the response is IGNORE. If it returns true, the response is IGNORE.
response
public final int getResponse()
Returns the value of the response, which will be one of the three variables: ABORT, IGNORE, or RETRY.
retry
public final boolean isRetry()
Tests to see if the response is RETRY. If it returns true, the response is RETRY.
ErrorResponse methods
abort()
public final void abort()
Returns a response value of ABORT. Call this method to cause the operation to fail with an exception throw.
ignore()
public final void ignore()
Returns a response value of IGNORE. Call this method to cause the operation to fail without an exception throw.
retry()
public final void retry()
Returns a reponse of RETRY. Call this method to attempt to retry the operation that failed.