|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.tc.mobile.exception.BaseRuntimeException
public class BaseRuntimeException
Base class for all other subclasses of Exception.
Objects of type BaseException can optionally hold a
reference to another Throwable object (root cause),
a language independent message object of type LocalizableText.
IBaseException,
BaseException,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.sap.tc.mobile.exception.IBaseException |
|---|
audit |
| Constructor Summary | |
|---|---|
BaseRuntimeException(BaseExceptionInfo info)
Constructs an exception out of a BaseExceptionInfo
object. |
|
BaseRuntimeException(Location loc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable cause)
Constructs an exception with a localizable text message. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Getter method for root cause. |
java.lang.String |
getLocalizedMessage()
Gets localized message. |
Location |
getLogLocation()
Getter method for logging location. |
java.lang.String |
getMessage()
|
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 object and its backtrace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this exception object and its backtrace to the specified print writer. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseRuntimeException(BaseExceptionInfo info)
BaseExceptionInfo
object.
info - BaseExceptionInfo
public BaseRuntimeException(Location loc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable cause)
loc - logging location which will be used in case of automatic tracing.msgObject - message object.args - arguments for the message (may be null if none).cause - causing exception (may be null if none).| Method Detail |
|---|
public 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.
initCause in interface IBaseExceptioninitCause in class java.lang.Throwablecause - 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 setpublic java.lang.Throwable getCause()
getCause in interface IBaseExceptiongetCause in class java.lang.Throwablepublic 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.
getLocalizedMessage in interface IBaseExceptiongetLocalizedMessage in class java.lang.Throwablepublic 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.
getNestedLocalizedMessage in interface IBaseExceptionpublic java.lang.String getSystemStackTraceString()
getSystemStackTraceString in interface IBaseExceptionpublic java.lang.String getStackTraceString()
getStackTraceString in interface IBaseExceptionpublic java.lang.String getNestedStackTraceString()
getNestedStackTraceString in interface IBaseExceptionpublic void printStackTrace()
System.err.
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream s)
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.Throwables - PrintStream to use for outputpublic void printStackTrace(java.io.PrintWriter s)
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.Throwables - PrintWriter to use for outputpublic Location getLogLocation()
If no location is specified, null is returned.
public java.lang.String getMessage()
getMessage in class java.lang.ThrowablegetLocalizedMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||