Class RuntimeStateTrimCallbackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.graalvm.nativeimage.RuntimeStateTrimCallbackException
- All Implemented Interfaces:
Serializable
Thrown when a runtime-state trim callback reports a nonzero status code.
- Since:
- 25.5
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIdentifies the callback that reported the failure. -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeStateTrimCallbackException(RuntimeStateTrimCallbackException.Phase phase, int statusCode) Creates an exception for a callback failure. -
Method Summary
Modifier and TypeMethodDescriptionphase()Returns the callback that reported the failure.intReturns the nonzero status code returned by the callback.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RuntimeStateTrimCallbackException
public RuntimeStateTrimCallbackException(RuntimeStateTrimCallbackException.Phase phase, int statusCode) Creates an exception for a callback failure.- Parameters:
phase- the callback that reported the failurestatusCode- the nonzero status code returned by the callback- Throws:
IllegalArgumentException- ifstatusCodeis zero
-
-
Method Details
-
phase
Returns the callback that reported the failure. -
statusCode
public int statusCode()Returns the nonzero status code returned by the callback.
-