Class RuntimeStateTrimCallbackException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.graalvm.nativeimage.RuntimeStateTrimCallbackException
All Implemented Interfaces:
Serializable

public final class RuntimeStateTrimCallbackException extends RuntimeException
Thrown when a runtime-state trim callback reports a nonzero status code.
Since:
25.5
See Also:
  • Constructor Details

    • RuntimeStateTrimCallbackException

      public RuntimeStateTrimCallbackException(RuntimeStateTrimCallbackException.Phase phase, int statusCode)
      Creates an exception for a callback failure.
      Parameters:
      phase - the callback that reported the failure
      statusCode - the nonzero status code returned by the callback
      Throws:
      IllegalArgumentException - if statusCode is zero
  • Method Details

    • phase

      Returns the callback that reported the failure.
    • statusCode

      public int statusCode()
      Returns the nonzero status code returned by the callback.