|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jocl.CLException
public class CLException
An exception that may be thrown due to a OpenCL error.
Exceptions may be enabled or disabled using
CL#setExceptionsEnabled(boolean).
If exceptions are enabled, the JOCL methods will throw a
CLException if the OpenCL function did not return CL_SUCCESS.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
int |
getStatus()
Returns the status code from OpenCL that caused this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CLException(java.lang.String message)
message - The error message for this CLException
public CLException(java.lang.String message,
int status)
message - The error message for this CLExceptionstatus - The status code from OpenCL
public CLException(java.lang.String message,
java.lang.Throwable cause)
message - The error message for this CLExceptioncause - The throwable that caused this exception
public 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 OpenCL| Method Detail |
|---|
public int getStatus()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||