Class OpenCLException
- Namespace
- DotCompute.Backends.OpenCL.Types.Native
- Assembly
- DotCompute.Backends.OpenCL.dll
Exception thrown when OpenCL operations fail.
public class OpenCLException : Exception, ISerializable
- Inheritance
-
OpenCLException
- Implements
- Inherited Members
Constructors
OpenCLException()
Initializes a new instance of the OpenCLException class.
public OpenCLException()
OpenCLException(OpenCLError)
Initializes a new instance of the OpenCLException class.
public OpenCLException(OpenCLError errorCode)
Parameters
errorCodeOpenCLErrorThe OpenCL error code.
OpenCLException(OpenCLError, string)
Initializes a new instance of the OpenCLException class.
public OpenCLException(OpenCLError errorCode, string message)
Parameters
errorCodeOpenCLErrorThe OpenCL error code.
messagestringCustom error message.
OpenCLException(OpenCLError, string, Exception)
Initializes a new instance of the OpenCLException class.
public OpenCLException(OpenCLError errorCode, string message, Exception innerException)
Parameters
errorCodeOpenCLErrorThe OpenCL error code.
messagestringCustom error message.
innerExceptionExceptionInner exception.
OpenCLException(string)
Initializes a new instance of the OpenCLException class.
public OpenCLException(string message)
Parameters
messagestringThe error message.
OpenCLException(string, Exception)
Initializes a new instance of the OpenCLException class.
public OpenCLException(string message, Exception innerException)
Parameters
Properties
ErrorCode
Gets the OpenCL error code that caused this exception.
public OpenCLError ErrorCode { get; }