Class OpenCLException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.haesleinhuepf.clij.clearcl.exceptions.ClearCLException
-
- net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException
-
- All Implemented Interfaces:
Serializable
public class OpenCLException extends ClearCLException
Exceptions for OpenCL error codes.- Author:
- royer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenCLException(int pOpenCLErrorCode)Constructs a ClearCL exception from a message and a cause.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Returns OpenCL error codestatic StringgetErrorString(int pOpenCLErrorCode)Returns OpenCL error string for OpenCL error code.voidthrowIfError()Throw exception if the error code corresponds to an error-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getErrorString
public static String getErrorString(int pOpenCLErrorCode)
Returns OpenCL error string for OpenCL error code.- Parameters:
pOpenCLErrorCode- OpenCL error code- Returns:
- error string
-
throwIfError
public void throwIfError()
Throw exception if the error code corresponds to an error
-
getErrorCode
public int getErrorCode()
Returns OpenCL error code- Returns:
- error code
-
-