public class ApplicationFailedException
extends java.lang.RuntimeException
ApplicationFailedException contains a human readable message
explaining the failure and optionally the exception that caused the failure.SQLException,
ApplicationErrorCodes,
Serialized Form| Constructor and Description |
|---|
ApplicationFailedException(java.lang.String errorMessage,
java.lang.String state,
long errorCode)
Creates a new
ApplicationFailedException containing the
designated information which is a human readable message, the
component-specific state and the ADEPT2-error code. |
ApplicationFailedException(java.lang.String errorMessage,
java.lang.String state,
long errorCode,
java.lang.Throwable cause)
Creates a new
ApplicationFailedException containing the
designated information which is a human readable message, the
component-specific state, the ADEPT2-error code and the cause for the
failure. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCompleteStackTrace()
Gets the complete stack trace of this exception as it would be printed to a
print stream.
|
long |
getErrorCode()
Returns the well-defined ADEPT2-error code.
|
java.lang.String |
getState()
Returns the component-specific state describing the failure further in
a machine-readable form.
|
public ApplicationFailedException(java.lang.String errorMessage,
java.lang.String state,
long errorCode)
ApplicationFailedException containing the
designated information which is a human readable message, the
component-specific state and the ADEPT2-error code.errorMessage - A human readable error message for this exception.state - Arbitrary state information specific to the component,
comparable to the vendor code in
SQLException.errorCode - The well-defined ADEPT2-error code.public ApplicationFailedException(java.lang.String errorMessage,
java.lang.String state,
long errorCode,
java.lang.Throwable cause)
ApplicationFailedException containing the
designated information which is a human readable message, the
component-specific state, the ADEPT2-error code and the cause for the
failure.errorMessage - A human readable error message for this exception.state - Arbitrary state information specific to the component,
comparable to the vendor code in
SQLException.errorCode - The well-defined ADEPT2-error code.cause - The cause for the failing of the application, for instance,
another exception.public long getErrorCode()
public java.lang.String getState()
public java.lang.String getCompleteStackTrace()