Class OnnxException

All Implemented Interfaces:
Serializable

public class OnnxException extends RuntimeException
Exception thrown when an ONNX Runtime operation fails.
See Also:
  • Constructor Details

    • OnnxException

      public OnnxException(int errorCode, String message)
      Constructor.
      Parameters:
      errorCode - the ORT error code.
      message - the error message.
    • OnnxException

      public OnnxException(String message, Throwable cause)
      Constructor.
      Parameters:
      message - the error message.
      cause - the cause.
  • Method Details

    • errorCode

      public int errorCode()
      Returns the ORT error code.
      Returns:
      the ORT error code.