Class Throwable
.NET implementations of https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html
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
messagestringThe 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
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe 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
Cause
Returns the cause of this throwable or null if the cause is nonexistent or unknown.
public Throwable Cause { get; }
Property Value
LocalizedMessage
Creates a localized description of this throwable.
public string LocalizedMessage { get; }
Property Value
StackTraceElements
Provides programmatic access to the stack trace information printed by printStackTrace().
public StackTraceElement[] StackTraceElements { get; }
Property Value
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
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
exceptionThrowableThe exception to be added to the list of suppressed exceptions
FillInStackTrace()
Fills in the execution stack trace.
public Throwable FillInStackTrace()
Returns
InitCause(Throwable)
Initializes the cause of this Throwable to the specified value.
public Throwable InitCause(Throwable cause)
Parameters
causeThrowableThe 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
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
PrintStackTrace(PrintWriter)
Prints this Throwable and its backtrace to the specified print writer.
public void PrintStackTrace(PrintWriter s)
Parameters
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
stackTraceStackTraceElement[]