See Also: Throwable
public class Throwable : Exception, IJavaObjectEx, ISerializable, IDisposable
The superclass of all classes which can be thrown by the VM. The two direct subclasses are recoverable exceptions (Exception) and unrecoverable errors (Error). This class provides common methods for accessing a string message which provides extra information about the circumstances in which the Throwable 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 Throwable can also include a cause, which is a nested Throwable that represents the original problem that led to this Throwable. It is often used for wrapping various types of errors into a common Throwable without losing the detailed original error information. When printing the stack trace, the trace of the cause is included.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Java.Lang.Throwable are listed below.
See Also: Exception
|Constructs a new Throwable that includes the current stack trace.|
|Constructs a new Throwable with the current stack trace and the given cause.|
|Constructs a new Throwable with the current stack trace and the given detail message.|
|A constructor used when creating managed representations of JNI objects; called by the runtime.|
|Constructs a new Throwable with the current stack trace, the given detail message and cause.|
|[read-only]||Cause||Throwable. Returns the cause of this Throwable, or null if there is no cause.|
|[read-only]||Handle||IntPtr. The handle to the underlying Android instance.|
|[read-only]||LocalizedMessage||String. Returns the detail message which was provided when this Throwable was created.|
|[read-only]||Message||String. Returns the detail message which was provided when this Throwable was created.|
Adds throwable to the list of throwables suppressed by this.
Records the stack trace from the point where this method has been called to this Throwable.
Returns a clone of the array of stack trace elements of this Throwable.
Returns the throwables suppressed by this.
Initializes the cause of this Throwable.
Writes a printable representation of this Throwable's stack trace to the System.err stream.
Writes a printable representation of this Throwable's stack trace to the given print stream.
Writes a printable representation of this Throwable's stack trace to the specified print writer.
Sets the array of stack trace elements.