|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBaseException
Common interface for BaseException and
BaseRuntimeException.
Objects of type IBaseException can optionally hold a
reference to another Throwable object (root cause) and
a language independent message object of type
LocalizableText.
BaseException,
BaseRuntimeException| Field Summary | |
|---|---|
static Category |
audit
Category for logging traces. |
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Getter method for root cause. |
java.lang.String |
getLocalizedMessage()
Gets localized message. |
java.lang.String |
getNestedLocalizedMessage()
Chains localized messages of the nested exceptions. |
java.lang.String |
getNestedStackTraceString()
Chains the stack trace information of nested exceptions. |
java.lang.String |
getStackTraceString()
Gets stack trace information of this exception only. |
java.lang.String |
getSystemStackTraceString()
Gets the stack information of this exception in respect of the current system environment. |
java.lang.Throwable |
initCause(java.lang.Throwable cause)
Initializes the cause of this exception to the specified value. |
void |
printStackTrace()
Prints this exception and its backtrace to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this exception and its backtrace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints the action object and its backtrace to
the specified print writer. |
| Field Detail |
|---|
static final Category audit
| Method Detail |
|---|
java.lang.Throwable initCause(java.lang.Throwable cause)
This method can be called at most once. That means the cause can be specified only once.
cause - the cause (which is saved for later retrieval by the
getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)
java.lang.IllegalArgumentException - if cause is this
throwable. (A throwable cannot be its own cause.)
java.lang.IllegalStateException - if the cause was already setjava.lang.Throwable getCause()
java.lang.String getLocalizedMessage()
The default locale and default time zone are used for localization.
These values have no effect if the finallyLocalize method has already been called.
java.lang.String getNestedLocalizedMessage()
The default locale and the default time zone are used for localization.
These values have no effect if the finallyLocalize method has already been called.
java.lang.String getSystemStackTraceString()
java.lang.String getStackTraceString()
The stack traces of nested exceptions are not chained.
java.lang.String getNestedStackTraceString()
The caused stack trace is displayed first.
void printStackTrace()
System.err.
void printStackTrace(java.io.PrintStream s)
s - PrintStream to use for outputvoid printStackTrace(java.io.PrintWriter s)
action object and its backtrace to
the specified print writer.
s - PrintWriter to use for output
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||