public class ProcessError
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_catalog |
protected java.lang.Throwable |
_cause |
protected java.lang.String |
_id |
protected java.lang.String |
_key |
protected java.lang.String |
_message |
protected java.lang.Object[] |
_vars |
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
ProcessError(java.lang.String message)
Constructs an error object from the error message passed.
|
ProcessError(java.lang.String key,
java.lang.Object[] vars,
java.lang.String id)
Constructs an error object with the specified message key
and remembers the values of the message variables passed.
|
ProcessError(java.lang.String key,
java.lang.Object[] vars,
java.lang.String id,
java.lang.Throwable cause)
Constructs an error object with the specified message key and exception
and remembers the values of the message variables passed.
|
ProcessError(java.lang.String catalog,
java.lang.String key,
java.lang.Object[] vars,
java.lang.String id,
java.lang.Throwable cause)
Constructs an error object with the specified message key and exception and
remembers the values of the message variables passed.
|
ProcessError(java.lang.String message,
java.lang.Throwable cause)
Constructs an error object from the error message and exception passed.
|
ProcessError(java.lang.Throwable cause)
Constructs an error object from the exception passed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Returns the nested exception.
|
java.lang.String |
getMessage()
Returns the message text of the error object.
|
java.lang.String |
getMessage(java.util.Locale locale)
Returns the message text of the error object.
|
java.lang.String |
getMessageID()
Returns the message id.
|
java.lang.String |
getMessageKey()
Returns the message key.
|
java.lang.Object[] |
getMessageVariables()
Returns the values of message variables.
|
java.lang.Throwable |
getRootCause()
Returns the root exception of this error.
|
void |
internPrintStackTrace(java.io.PrintWriter s)
Prints this exception to the specified print writer.
|
void |
printStackTrace()
Prints this exception to the standard error stream.
|
void |
printStackTrace(java.io.PrintStream s)
Prints this exception to the specified print stream.
|
void |
printStackTrace(java.io.PrintWriter s)
Prints this exception to the specified print writer.
|
public static final java.lang.String COPYRIGHT
protected java.lang.String _catalog
protected java.lang.String _message
protected java.lang.String _key
protected java.lang.Object[] _vars
protected java.lang.String _id
protected java.lang.Throwable _cause
public ProcessError(java.lang.String message)
message
- The error message.public ProcessError(java.lang.Throwable cause)
cause
- The exception that was thrown.public ProcessError(java.lang.String message, java.lang.Throwable cause)
message
- The error message.cause
- The exception that was thrown.public ProcessError(java.lang.String key, java.lang.Object[] vars, java.lang.String id)
key
- The message key.vars
- The values of the message variables. Can be an empty array. If the array contains objects,
they must be Serializable.id
- The message id.public ProcessError(java.lang.String key, java.lang.Object[] vars, java.lang.String id, java.lang.Throwable cause)
key
- The message key.vars
- The values of the message variables. Can be an empty array. If the array contains objects,
they must be Serializable.id
- The message id.cause
- The exception that was thrown.public ProcessError(java.lang.String catalog, java.lang.String key, java.lang.Object[] vars, java.lang.String id, java.lang.Throwable cause)
catalog
- The catalog which have to be used to retrieve the message.key
- The message key.vars
- The values of the message variables. Can be an empty array. If the array contains objects,
they must be Serializable.id
- The message id.cause
- The exception that was thrown.public final java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getMessage(java.util.Locale locale)
locale
- The locale of the message catalog to be used. Is ignored if the error object does not contain
a message key.public final java.lang.String getMessageKey()
null
is returned if a message key is not specified.public final java.lang.String getMessageID()
public final java.lang.Object[] getMessageVariables()
public final java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
null
is returned if there is no nested exception.public final java.lang.Throwable getRootCause()
public final void printStackTrace()
printStackTrace(PrintWriter)
.printStackTrace
in class java.lang.Throwable
public final void printStackTrace(java.io.PrintStream s)
printStackTrace(PrintWriter)
.printStackTrace
in class java.lang.Throwable
s
- The print stream to write to.public final void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- The print writer to write to.public final void internPrintStackTrace(java.io.PrintWriter s)
protected
to public
because of split-package issues between core and common bundle.s
- The print writer to write to.