Throwable Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Throwable
class is the superclass of all errors and
exceptions in the Java language.
[Android.Runtime.Register("java/lang/Throwable", DoNotGenerateAcw=true)]
public class Throwable : Exception, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable
[<Android.Runtime.Register("java/lang/Throwable", DoNotGenerateAcw=true)>]
type Throwable = class
inherit Exception
interface IJavaObject
interface IDisposable
interface IJavaPeerable
interface ISerializable
- Inheritance
-
Throwable
- Derived
- Attributes
- Implements
Remarks
Java documentation for java.lang.Throwable
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
Throwable() |
Constructs a new throwable with |
Throwable(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Throwable(String) |
Constructs a new throwable with the specified detail message. |
Throwable(String, Throwable) |
Constructs a new throwable with the specified detail message and cause. |
Throwable(String, Throwable, Boolean, Boolean) |
Constructs a new throwable with the specified detail message, cause, #addSuppressed suppression enabled or disabled, and writable stack trace enabled or disabled. |
Throwable(Throwable) |
Constructs a new throwable with the specified cause and a detail
message of |
Fields
is_generated |
Properties
Cause |
Returns the cause of this throwable or |
Class | |
Handle |
The handle to the underlying Android instance. |
JniIdentityHashCode | |
JniPeerMembers | |
LocalizedMessage |
Creates a localized description of this throwable. |
Message |
Returns the detail message string of this throwable. |
PeerReference | |
StackTrace | |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Methods
AddSuppressed(Throwable) |
Appends the specified exception to the exceptions that were suppressed in order to deliver this exception. |
Dispose() | |
Dispose(Boolean) | |
FillInStackTrace() |
Fills in the execution stack trace. |
Finalize() | |
FromException(Exception) | |
GetStackTrace() |
Provides programmatic access to the stack trace information printed by
|
GetSuppressed() |
Returns an array containing all of the exceptions that were
suppressed, typically by the |
InitCause(Throwable) |
Initializes the cause of this throwable to the specified value. |
PrintStackTrace() |
Prints this throwable and its backtrace to the standard error stream. |
PrintStackTrace(PrintStream) |
Prints this throwable and its backtrace to the specified print stream. |
PrintStackTrace(PrintWriter) |
Prints this throwable and its backtrace to the specified print writer. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. |
SetStackTrace(StackTraceElement[]) |
Sets the stack trace elements that will be returned by
|
ToException(Throwable) | |
ToString() | |
UnregisterFromRuntime() |
Explicit Interface Implementations
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |