Table of Contents

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

errorCode OpenCLError

The OpenCL error code.

OpenCLException(OpenCLError, string)

Initializes a new instance of the OpenCLException class.

public OpenCLException(OpenCLError errorCode, string message)

Parameters

errorCode OpenCLError

The OpenCL error code.

message string

Custom error message.

OpenCLException(OpenCLError, string, Exception)

Initializes a new instance of the OpenCLException class.

public OpenCLException(OpenCLError errorCode, string message, Exception innerException)

Parameters

errorCode OpenCLError

The OpenCL error code.

message string

Custom error message.

innerException Exception

Inner exception.

OpenCLException(string)

Initializes a new instance of the OpenCLException class.

public OpenCLException(string message)

Parameters

message string

The error message.

OpenCLException(string, Exception)

Initializes a new instance of the OpenCLException class.

public OpenCLException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.

Properties

ErrorCode

Gets the OpenCL error code that caused this exception.

public OpenCLError ErrorCode { get; }

Property Value

OpenCLError