Class OnnxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
smile.onnx.OnnxException
- All Implemented Interfaces:
Serializable
Exception thrown when an ONNX Runtime operation fails.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOnnxException(int errorCode, String message) Constructor.OnnxException(String message, Throwable cause) Constructor. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OnnxException
Constructor.- Parameters:
errorCode- the ORT error code.message- the error message.
-
OnnxException
-
-
Method Details
-
errorCode
public int errorCode()Returns the ORT error code.- Returns:
- the ORT error code.
-