ImageResourceLimitException Class
The exception thrown when an operation would exceed a configured ImageResourceLimits value.
public class ImageResourceLimitException : ImageExceptionRemarks
Exceeding a limit never produces a silently truncated result.
- Inheritance
ImageExceptionImageResourceLimitException
Constructors
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the ImageResourceLimitException class.
public ImageResourceLimitException()ImageResourceLimitException(ImageResourceLimitKind, long, long?)
ImageResourceLimitException.csInitializes a new instance of the ImageResourceLimitException class with structured details.
public ImageResourceLimitException(ImageResourceLimitKind kind, long limit, long? requested)Parameters
kindImageResourceLimitKind- The exceeded limit.
limitlong- The configured value of the limit.
requestedlong?- The value that was requested, if known.
ImageResourceLimitException(string?)
ImageResourceLimitException.csInitializes a new instance of the ImageResourceLimitException class with a message.
public ImageResourceLimitException(string? message)Parameters
messagestring?- The error message.
ImageResourceLimitException(string?, Exception?)
ImageResourceLimitException.csInitializes a new instance of the ImageResourceLimitException class with a message and an inner exception.
Parameters
messagestring?- The error message.
innerExceptionException?- The exception that caused this exception.
Properties
| Name | Description |
|---|---|
| Kind | Gets the exceeded limit. |
| Limit | Gets the configured value of the exceeded limit, or 0 if not specified. |
| Requested | Gets the requested value that exceeded the limit, or null if unknown (for example when a cumulative counter crossed the limit). |