Table of Contents

Class Throwable

Namespace
Java.Lang
Assembly
MASES.JNet.dll
public class Throwable : JVMBridgeException<Throwable>, ISerializable, _Exception, IJVMBridgeCore
Inheritance
Throwable
Implements
Derived
Inherited Members

Constructors

Throwable()

Initializes a new instance of the Exception class.

public Throwable()

Throwable(string)

Initializes a new instance of the Exception class with a specified error message.

public Throwable(string message)

Parameters

message string

The message that describes the error.

Throwable(string, Exception)

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

public Throwable(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Properties

BridgeClassName

Java class name of the exception

public override string BridgeClassName { get; }

Property Value

string

Cause

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

public Throwable Cause { get; }

Property Value

Throwable

LocalizedMessage

Creates a localized description of this throwable.

public string LocalizedMessage { get; }

Property Value

string

StackTraceElements

Provides programmatic access to the stack trace information printed by printStackTrace().

public StackTraceElement[] StackTraceElements { get; }

Property Value

StackTraceElement[]

Suppressed

Returns an array containing all of the exceptions that were suppressed, typically by the try-with-resources statement, in order to deliver this exception.

public Throwable[] Suppressed { get; }

Property Value

Throwable[]

Methods

AddSuppressed(Throwable)

Appends the specified exception to the exceptions that were suppressed in order to deliver this exception.

public void AddSuppressed(Throwable exception)

Parameters

exception Throwable

The exception to be added to the list of suppressed exceptions

FillInStackTrace()

Fills in the execution stack trace.

public Throwable FillInStackTrace()

Returns

Throwable

A reference to this Throwable instance.

InitCause(Throwable)

Initializes the cause of this Throwable to the specified value.

public Throwable InitCause(Throwable cause)

Parameters

cause Throwable

The cause (which is saved for later retrieval by the Cause property). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Returns

Throwable

A reference to this Throwable instance.

PrintStackTrace()

Prints this Throwable and its backtrace to the standard error stream.

public void PrintStackTrace()

PrintStackTrace(PrintStream)

Prints this Throwable and its backtrace to the specified print stream.

public void PrintStackTrace(PrintStream s)

Parameters

s PrintStream

PrintStackTrace(PrintWriter)

Prints this Throwable and its backtrace to the specified print writer.

public void PrintStackTrace(PrintWriter s)

Parameters

s PrintWriter

SetStackTrace(StackTraceElement[])

Sets the stack trace elements that will be returned by StackTraceElements and printed by PrintStackTrace() and related methods.

public void SetStackTrace(StackTraceElement[] stackTrace)

Parameters

stackTrace StackTraceElement[]