public class CLException
extends java.lang.RuntimeException
CL#setExceptionsEnabled(boolean)
.
If exceptions are enabled, the JOCL methods will throw a
CLException if the OpenCL function did not return CL_SUCCESS.Constructor and Description |
---|
CLException(java.lang.String message)
Creates a new CLException with the given error message.
|
CLException(java.lang.String message,
int status)
Creates a new CLException with the given error message.
|
CLException(java.lang.String message,
java.lang.Throwable cause)
Creates a new CLException with the given error message.
|
CLException(java.lang.String message,
java.lang.Throwable cause,
int status)
Creates a new CLException with the given error message.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
Returns the status code from OpenCL that caused this exception.
|
public CLException(java.lang.String message)
message
- The error message for this CLExceptionpublic CLException(java.lang.String message, int status)
message
- The error message for this CLExceptionstatus
- The status code from OpenCLpublic CLException(java.lang.String message, java.lang.Throwable cause)
message
- The error message for this CLExceptioncause
- The throwable that caused this exceptionpublic CLException(java.lang.String message, java.lang.Throwable cause, int status)
message
- The error message for this CLExceptioncause
- The throwable that caused this exceptionstatus
- The status code from OpenCLpublic int getStatus()
CL.CL_INVALID_DEVICE