Package com.jme3.opencl
Class OpenCLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jme3.opencl.OpenCLException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
KernelCompilationException
Generic OpenCL exception, can be thrown in every method of this package.
The error code and its name is reported in the message string as well as the OpenCL call that
causes this exception. Please refer to the official OpenCL specification
to see what might cause this exception.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new instance ofOpenCLException
without detail message.OpenCLException
(String msg) Constructs an instance ofOpenCLException
with the specified detail message.OpenCLException
(String msg, int errorCode) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpenCLException
public OpenCLException()Creates a new instance ofOpenCLException
without detail message. -
OpenCLException
Constructs an instance ofOpenCLException
with the specified detail message.- Parameters:
msg
- the detail message.
-
OpenCLException
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Returns:
- the error code
-