Table of Contents

Class MetalResourceLimitException

Namespace
DotCompute.Backends.Metal.Execution
Assembly
DotCompute.Backends.Metal.dll

Exception thrown when Metal resource limits are exceeded

[Serializable]
public class MetalResourceLimitException : MetalException, ISerializable
Inheritance
MetalResourceLimitException
Implements
Inherited Members

Constructors

MetalResourceLimitException()

public MetalResourceLimitException()

MetalResourceLimitException(SerializationInfo, StreamingContext)

protected MetalResourceLimitException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

MetalResourceLimitException(string)

public MetalResourceLimitException(string message)

Parameters

message string

MetalResourceLimitException(string, Exception)

public MetalResourceLimitException(string message, Exception innerException)

Parameters

message string
innerException Exception

MetalResourceLimitException(string, long, long)

public MetalResourceLimitException(string resourceType, long requested, long available)

Parameters

resourceType string
requested long
available long

Properties

AvailableAmount

public long AvailableAmount { get; }

Property Value

long

RequestedAmount

public long RequestedAmount { get; }

Property Value

long

ResourceType

public string ResourceType { get; }

Property Value

string

Methods

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the SerializationInfo with information about the exception.

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

The info parameter is a null reference (Nothing in Visual Basic).