Class CudaException
A CUDA exception is thrown if a CUDA Driver API method call does not return Success
Inheritance
System.Object
System.Exception
CudaException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
[Serializable]
public class CudaException : Exception, ISerializable
Constructors
| Improve this Doc View SourceCudaException()
Declaration
public CudaException()
CudaException(CUResult)
Declaration
public CudaException(CUResult error)
Parameters
Type | Name | Description |
---|---|---|
CUResult | error |
CudaException(CUResult, String, Exception)
Declaration
public CudaException(CUResult error, string message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
CUResult | error | |
System.String | message | |
System.Exception | exception |
CudaException(SerializationInfo, StreamingContext)
Declaration
protected CudaException(SerializationInfo serInfo, StreamingContext streamingContext)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | serInfo | |
System.Runtime.Serialization.StreamingContext | streamingContext |
CudaException(String)
Declaration
public CudaException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
CudaException(String, Exception)
Declaration
public CudaException(string message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | exception |
Properties
| Improve this Doc View SourceCudaError
Declaration
public CUResult CudaError { get; set; }
Property Value
Type | Description |
---|---|
CUResult |
CudaInternalErrorDescription
Error description as returned by CUDA driver API
Declaration
public string CudaInternalErrorDescription { get; }
Property Value
Type | Description |
---|---|
System.String |
CudaInternalErrorName
Error name as returned by CUDA driver API
Declaration
public string CudaInternalErrorName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Exception.ToString()
Implements
System.Runtime.Serialization.ISerializable