Class JitnnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.beestream.jitnn.JitnnException
- All Implemented Interfaces:
Serializable
A failure of the device or the runtime: a plan that TornadoVM could not compile or run, a
vendor library call that failed, a native library of the CPU backend that could not be called.
The cause is the underlying exception. Misuse (a released tensor, mismatched shapes) is reported
with
IllegalStateException and IllegalArgumentException; files that cannot be read
with IOException.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJitnnException(String message) A failure described bymessage.JitnnException(String message, Throwable cause) A failure described bymessage, caused bycause. -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeExceptionwrap(String what, RuntimeException e) eas aJitnnExceptionwhen it is a device or runtime failure (one from TornadoVM), elseeitself.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JitnnException
-
JitnnException
A failure described bymessage.
-
-
Method Details
-
wrap
eas aJitnnExceptionwhen it is a device or runtime failure (one from TornadoVM), elseeitself.
-