|
|||||||||
| 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
java.lang.NullPointerException
com.sap.tc.mobile.exception.standard.SAPNullPointerException
public class SAPNullPointerException
Wrapper class for NullPointerException.
| Field Summary |
|---|
| Fields inherited from interface com.sap.tc.mobile.exception.IBaseException |
|---|
audit |
| Constructor Summary | |
|---|---|
SAPNullPointerException(Location loc)
Constructs an exception. |
|
SAPNullPointerException(Location loc,
MsgObject msgObject)
Constructs an exception with the specified root cause, which caused this exception. |
|
SAPNullPointerException(Location loc,
MsgObject msgObject,
java.lang.Object[] args)
Constructs an exception with the specified root cause, which caused this exception. |
|
SAPNullPointerException(Location loc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable rootCause)
Constructs an exception with the specified root cause, which caused this exception. |
|
SAPNullPointerException(Location loc,
java.lang.Throwable rootCause)
Constructs an exception with the specified root cause, which caused this exception. |
|
| 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 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. |
| 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 SAPNullPointerException(Location loc)
loc - logging location which will be used in case of automatic tracing logging location.
public SAPNullPointerException(Location loc,
java.lang.Throwable rootCause)
loc - logging location which will be used in case of automatic tracing logging location.rootCause - throwable object which caused this exception.
public SAPNullPointerException(Location loc,
MsgObject msgObject)
loc - logging location which will be used in case of automatic tracing logging location.msgObject - message object.
public SAPNullPointerException(Location loc,
MsgObject msgObject,
java.lang.Object[] args)
loc - logging location which will be used in case of automatic tracing logging location.msgObject - message object.args - arguments for message.
public SAPNullPointerException(Location loc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable rootCause)
loc - logging location which will be used in case of automatic tracing logging location.msgObject - message object.args - arguments for message.rootCause - throwable object which caused this exception.| Method Detail |
|---|
public java.lang.Throwable initCause(java.lang.Throwable cause)
IBaseExceptionThis 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
IBaseException.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)
IBaseException.initCause(Throwable)public java.lang.Throwable getCause()
IBaseException
getCause in interface IBaseExceptiongetCause in class java.lang.ThrowableIBaseException.getCause()public java.lang.String getLocalizedMessage()
IBaseExceptionThe 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.ThrowableIBaseException.getLocalizedMessage()public java.lang.String getNestedLocalizedMessage()
IBaseExceptionThe 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 IBaseExceptionIBaseException.getNestedLocalizedMessage()public java.lang.String getSystemStackTraceString()
getSystemStackTraceString in interface IBaseExceptionIBaseException.getSystemStackTraceString()public java.lang.String getStackTraceString()
IBaseExceptionThe stack traces of nested exceptions are not chained.
getStackTraceString in interface IBaseExceptionIBaseException.getStackTraceString()public java.lang.String getNestedStackTraceString()
IBaseExceptionThe caused stack trace is displayed first.
getNestedStackTraceString in interface IBaseExceptionIBaseException.getNestedStackTraceString()public void printStackTrace()
IBaseExceptionSystem.err.
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.ThrowableIBaseException.printStackTrace()public void printStackTrace(java.io.PrintStream s)
IBaseException
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.Throwables - PrintStream to use for outputIBaseException.printStackTrace(PrintStream)public void printStackTrace(java.io.PrintWriter s)
IBaseExceptionaction object and its backtrace to
the specified print writer.
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.Throwables - PrintWriter to use for outputIBaseException.printStackTrace(PrintWriter)public java.lang.String getMessage()
getMessage in class java.lang.ThrowablegetLocalizedMessage()public Location getLogLocation()
If no location is specified, null is returned.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||