org.jocl
Class CLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jocl.CLException
All Implemented Interfaces:
java.io.Serializable

public class CLException
extends java.lang.RuntimeException

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.

See Also:
Serialized Form

Constructor Summary
CLException(java.lang.String message)
          Creates a new CLException with the given error message.
 
Method Summary
 
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

CLException

public CLException(java.lang.String message)
Creates a new CLException with the given error message.

Parameters:
message - The error message for this CLException