Class ResourceAllocationException
Represents a failure that occurs when required resources cannot be allocated.
Implements
Inherited Members
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
[Serializable]
public class ResourceAllocationException : AmqpException, ISerializable
Constructors
ResourceAllocationException()
Initializes a new instance of the ResourceAllocationException class.
Declaration
public ResourceAllocationException()
ResourceAllocationException(string)
Initializes a new instance of the ResourceAllocationException class with a specified error message describing the resource allocation failure.
Declaration
public ResourceAllocationException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the resource allocation failure. |
ResourceAllocationException(string, Exception)
Initializes a new instance of the ResourceAllocationException class with a specified error message and a reference to the inner exception.
Declaration
public ResourceAllocationException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the resource allocation failure. |
| Exception | innerException | The exception that caused the current allocation failure. |
ResourceAllocationException(string, string)
Initializes a new instance of the ResourceAllocationException class with a specified error message and provider-specific error code.
Declaration
public ResourceAllocationException(string message, string errorCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the resource allocation failure. |
| string | errorCode | A provider-specific code that identifies the allocation error. |
ResourceAllocationException(string, string, Exception)
Initializes a new instance of the ResourceAllocationException class with a specified error message, provider-specific error code, and inner exception.
Declaration
public ResourceAllocationException(string message, string errorCode, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the resource allocation failure. |
| string | errorCode | A provider-specific code that identifies the allocation error. |
| Exception | innerException | The exception that caused the current allocation failure. |