DthingApi
|
Public Member Functions | |
Throwable () | |
Throwable (String detailMessage) | |
String | getMessage () |
String | getLocalizedMessage () |
void | printStackTrace () |
String | toString () |
The superclass of all classes which can be thrown by the VM. The two direct subclasses are recoverable exceptions (
) and unrecoverable errors (
). This class provides common methods for accessing a string message which provides extra information about the circumstances in which the
was created (basically an error message in most cases), and for saving a stack trace (that is, a record of the call stack at a particular point in time) which can be printed later.
A
can also include a cause, which is a nested
that represents the original problem that led to this
. It is often used for wrapping various types of errors into a common
without losing the detailed original error information. When printing the stack trace, the trace of the cause is included.
|
inline |
|
inline |
|
inline |
Returns the extra information message which was provided when this
was created. Returns
if no message was provided at creation time. Subclasses may override this method to return localized text for the message. Android returns the regular detail message.
|
inline |
|
inline |
|
inline |
Returns a short description of this throwable object. If this Throwable
object was created with an error message string, then the result is the concatenation of three strings:
If this Throwable
object was created with no error message string, then the name of the actual class of this object is returned.
Throwable
.