Top Constructors Methods
org.graalvm.nativebridge

pack-priv final Class ForeignExceptionEndPoints

extends Object
Class Inheritance
Imports
org.graalvm.jniutils.JNIEntryPoint

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static Throwable

Returns:

a ForeignException instance
createForeignException
(byte[]
marshalled original exception
rawValue
)

Called by JNI to create a ForeignException used to throw native exception into Java code.

pack-priv static byte[]
toByteArray(ForeignException exception)

Called by JNI to return a marshalled exception transferred by the exception.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ForeignExceptionEndPointsback to summary
private ForeignExceptionEndPoints()

Method Detail

createForeignExceptionback to summary
pack-priv static Throwable createForeignException(byte[] rawValue)

Called by JNI to create a ForeignException used to throw native exception into Java code.

Parameters
rawValue:byte[]

marshalled original exception

Returns:Throwable

a ForeignException instance

Annotations
@JNIEntryPoint
toByteArrayback to summary
pack-priv static byte[] toByteArray(ForeignException exception)

Called by JNI to return a marshalled exception transferred by the exception.

Annotations
@JNIEntryPoint