Class OpenCLException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
KernelCompilationException

public class OpenCLException extends RuntimeException
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 Details

    • OpenCLException

      public OpenCLException()
      Creates a new instance of OpenCLException without detail message.
    • OpenCLException

      public OpenCLException(String msg)
      Constructs an instance of OpenCLException with the specified detail message.
      Parameters:
      msg - the detail message.
    • OpenCLException

      public OpenCLException(String msg, int errorCode)
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns:
      the error code