Class QldbTransactionException
The root exception for all transaction related exceptions. It reports back the transaction ID.
Implements
Inherited Members
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public class QldbTransactionException : Exception, ISerializable
Constructors
| Improve this Doc View SourceQldbTransactionException(String)
Initializes a new instance of the QldbTransactionException class.
Declaration
public QldbTransactionException(string transactionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | transactionId | The transaction ID. |
QldbTransactionException(String, Boolean)
Initializes a new instance of the QldbTransactionException class.
Declaration
public QldbTransactionException(string transactionId, bool isSessionAlive)
Parameters
Type | Name | Description |
---|---|---|
System.String | transactionId | The transaction ID. |
System.Boolean | isSessionAlive | Whether the session is still alive. |
QldbTransactionException(String, Boolean, Exception)
Initializes a new instance of the QldbTransactionException class.
Declaration
public QldbTransactionException(string transactionId, bool isSessionAlive, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | transactionId | The transaction ID. |
System.Boolean | isSessionAlive | Whether the session is still alive. |
System.Exception | innerException | The inner exception. |
QldbTransactionException(String, Exception)
Initializes a new instance of the QldbTransactionException class.
Declaration
public QldbTransactionException(string transactionId, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | transactionId | The transaction ID. |
System.Exception | innerException | The inner exception. |
QldbTransactionException(String, String, Boolean, Exception)
Initializes a new instance of the QldbTransactionException class.
Declaration
public QldbTransactionException(string errorMessage, string transactionId, bool isSessionAlive, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorMessage | The customized error message. |
System.String | transactionId | The transaction ID. |
System.Boolean | isSessionAlive | Whether the session is still alive. |
System.Exception | innerException | The inner exception. |
QldbTransactionException(String, String, Exception)
Initializes a new instance of the QldbTransactionException class.
Declaration
public QldbTransactionException(string errorMessage, string transactionId, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorMessage | The customized error message. |
System.String | transactionId | The transaction ID. |
System.Exception | innerException | The inner exception. |
Properties
| Improve this Doc View SourceIsSessionAlive
Gets a value indicating whether the session is still alive after this exception.
Declaration
public bool IsSessionAlive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
TransactionId
Gets the transaction ID.
Declaration
public string TransactionId { get; }
Property Value
Type | Description |
---|---|
System.String |