Class OrtException

All Implemented Interfaces:
Serializable

public class OrtException extends Exception
An exception which contains the error message and code produced by the native onnxruntime.
See Also:
  • Constructor Details

    • OrtException

      public OrtException(String message)
      Creates an OrtException with a default Java error code and the specified message.
      Parameters:
      message - The message to use.
    • OrtException

      public OrtException(int code, String message)
      Used to throw an exception from native code as it handles the enum lookup in Java.
      Parameters:
      code - The error code.
      message - The message.
    • OrtException

      public OrtException(OrtException.OrtErrorCode code, String message)
      Creates an OrtException using the specified error code and message.
      Parameters:
      code - The error code from the native runtime.
      message - The error message.
  • Method Details