Top Description Constructors Methods
org.graalvm.jniutils

pack-priv final Class JNIExceptionWrapperEntryPoints

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .ByteArrayOutputStream, .DataInputStream, .DataOutputStream, .IOException

Entry points in HotSpot for exception handling from a JNI native method.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Throwable

Returns:

exception
createException
(String
the exception message
message
)

Creates an exception used to throw native exception into Java code.

pack-priv static String
pack-priv static byte[]
pack-priv static String
pack-priv static Throwable

Returns:

the updated Throwable
updateStackTrace
(Throwable
the Throwable to update
target
,
byte[]
byte serialized stack trace
serializedStackTrace
)

Updates an exception stack trace by decoding a stack trace from a JNI native method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JNIExceptionWrapperEntryPointsback to summary
pack-priv JNIExceptionWrapperEntryPoints()

Method Detail

createExceptionback to summary
pack-priv static Throwable createException(String message)

Creates an exception used to throw native exception into Java code.

Parameters
message:String

the exception message

Returns:Throwable

exception

Annotations
@JNIEntryPoint
getClassNameback to summary
pack-priv static String getClassName(Class<?> clz)
Annotations
@JNIEntryPoint
getStackTraceback to summary
pack-priv static byte[] getStackTrace(Throwable throwable)
Annotations
@JNIEntryPoint
getThrowableMessageback to summary
pack-priv static String getThrowableMessage(Throwable t)
Annotations
@JNIEntryPoint
updateStackTraceback to summary
pack-priv static Throwable updateStackTrace(Throwable target, byte[] serializedStackTrace)

Updates an exception stack trace by decoding a stack trace from a JNI native method.

Parameters
target:Throwable

the Throwable to update

serializedStackTrace:byte[]

byte serialized stack trace

Returns:Throwable

the updated Throwable

Annotations
@JNIEntryPoint