Top Description Fields Constructors Methods
org.graalvm.nativebridge

public final Class MarshalledException

extends RuntimeException
Class Inheritance
Annotations
@SuppressWarnings:serial

An exception representing an exception thrown over the isolate boundary.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
MarshalledException(String
the foreign exception class name
foreignExceptionClassName
,
String
the foreign exception message
foreignExceptionMessage
,
StackTraceElement[]
the merged stack trace.
stackTrace
)

Creates a MarshalledException for foreign exception of the foreignExceptionClassName type with the foreignExceptionMessage message.

Method Summary

Modifier and TypeMethod and Description
public Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.

public String
getForeignExceptionClassName()

Returns the foreign exception class name.

public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

foreignExceptionClassNameback to summary
private final String foreignExceptionClassName

Constructor Detail

MarshalledExceptionback to summary
public MarshalledException(String foreignExceptionClassName, String foreignExceptionMessage, StackTraceElement[] stackTrace)

Creates a MarshalledException for foreign exception of the foreignExceptionClassName type with the foreignExceptionMessage message.

Parameters
foreignExceptionClassName:String

the foreign exception class name

foreignExceptionMessage:String

the foreign exception message

stackTrace:StackTraceElement[]

the merged stack trace.

Method Detail

fillInStackTraceback to summary
public Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override
@SuppressWarnings:sync-override
getForeignExceptionClassNameback to summary
public String getForeignExceptionClassName()

Returns the foreign exception class name.

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override