Class TransactionInProgressException
Thrown when an operation cannot be performed because a transaction is already in progress on the connection or session. Use this exception to indicate conflicting transaction operations such as attempting to begin a new transaction while another is active, or to mark that certain actions are illegal during a transaction lifecycle.
Implements
Inherited Members
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
[Serializable]
public class TransactionInProgressException : AmqpException, ISerializable
Constructors
TransactionInProgressException()
Initializes a new instance of the TransactionInProgressException class.
Declaration
public TransactionInProgressException()
TransactionInProgressException(string)
Initializes a new instance of the TransactionInProgressException class with a specified error message.
Declaration
public TransactionInProgressException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
TransactionInProgressException(string, Exception)
Initializes a new instance of the TransactionInProgressException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public TransactionInProgressException(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. |
TransactionInProgressException(string, string)
Initializes a new instance of the TransactionInProgressException class with a specified error message and provider-specific error code.
Declaration
public TransactionInProgressException(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. |
TransactionInProgressException(string, string, Exception)
Initializes a new instance of the TransactionInProgressException 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 TransactionInProgressException(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. |