ImageResourceLimitException Class

The exception thrown when an operation would exceed a configured ImageResourceLimits value.

public class ImageResourceLimitException : ImageException

Remarks

Exceeding a limit never produces a silently truncated result.

Inheritance
ImageException ImageResourceLimitException

Constructors

NameDescription
ImageResourceLimitException()Initializes a new instance of the ImageResourceLimitException class.
ImageResourceLimitException(ImageResourceLimitKind, long, long?)Initializes a new instance of the ImageResourceLimitException class with structured details.
ImageResourceLimitException(string?)Initializes a new instance of the ImageResourceLimitException class with a message.
ImageResourceLimitException(string?, Exception?)Initializes a new instance of the ImageResourceLimitException class with a message and an inner exception.

ImageResourceLimitException overloads

ImageResourceLimitException()

ImageResourceLimitException.cs

Initializes a new instance of the ImageResourceLimitException class.

public ImageResourceLimitException()

ImageResourceLimitException(ImageResourceLimitKind, long, long?)

ImageResourceLimitException.cs

Initializes a new instance of the ImageResourceLimitException class with structured details.

public ImageResourceLimitException(ImageResourceLimitKind kind, long limit, long? requested)
Parameters
kind ImageResourceLimitKind
The exceeded limit.
limit long
The configured value of the limit.
requested long?
The value that was requested, if known.

ImageResourceLimitException(string?)

ImageResourceLimitException.cs

Initializes a new instance of the ImageResourceLimitException class with a message.

public ImageResourceLimitException(string? message)
Parameters
message string?
The error message.

ImageResourceLimitException(string?, Exception?)

ImageResourceLimitException.cs

Initializes a new instance of the ImageResourceLimitException class with a message and an inner exception.

public ImageResourceLimitException(string? message, Exception? innerException)
Parameters
message string?
The error message.
innerException Exception?
The exception that caused this exception.

Properties

NameDescription
KindGets the exceeded limit.
LimitGets the configured value of the exceeded limit, or 0 if not specified.
RequestedGets the requested value that exceeded the limit, or null if unknown (for example when a cumulative counter crossed the limit).

Gets the exceeded limit.

public ImageResourceLimitKind Kind { get; }

Gets the configured value of the exceeded limit, or 0 if not specified.

public long Limit { get; }

Property value

long

Gets the requested value that exceeded the limit, or null if unknown (for example when a cumulative counter crossed the limit).

public long? Requested { get; }

Property value

long?