Class AmqpSecurityException
Represents a security-related failure that occurs while using the AMQP client. This exception is thrown when an operation is denied due to authentication, authorization, or other security checks performed by the broker or client.
Implements
Inherited Members
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
[Serializable]
public class AmqpSecurityException : AmqpException, ISerializable
Constructors
AmqpSecurityException()
Initializes a new instance of the AmqpSecurityException class.
Declaration
public AmqpSecurityException()
AmqpSecurityException(string)
Initializes a new instance of the AmqpSecurityException class with a specified error message.
Declaration
public AmqpSecurityException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
AmqpSecurityException(string, Exception)
Initializes a new instance of the AmqpSecurityException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public AmqpSecurityException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| Exception | innerException | The exception that is the cause of the current exception. |
AmqpSecurityException(string, string)
Initializes a new instance of the AmqpSecurityException class with a specified error message and provider-specific error code.
Declaration
public AmqpSecurityException(string message, string errorCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| string | errorCode | A provider-specific error code associated with the exception. |
AmqpSecurityException(string, string, Exception)
Initializes a new instance of the AmqpSecurityException class with a specified error message, provider-specific error code, and a reference to the inner exception that is the cause of this exception.
Declaration
public AmqpSecurityException(string message, string errorCode, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| string | errorCode | A provider-specific error code associated with the exception. |
| Exception | innerException | The exception that is the cause of the current exception. |