Class TransactionOperationFailedException
Indicates an operation in a transaction failed.
Inherited Members
Namespace: Couchbase.Client.Transactions.Error.External
Assembly: Couchbase.NetClient.dll
Syntax
public class TransactionOperationFailedException : CouchbaseException, ISerializable, IClassifiedTransactionError
Constructors
| Edit this page View SourceTransactionOperationFailedException(ErrorClass, bool, bool, Exception, FinalError)
Declaration
public TransactionOperationFailedException(ErrorClass causingErrorClass, bool autoRollbackAttempt, bool retryTransaction, Exception cause, TransactionOperationFailedException.FinalError finalErrorToRaise)
Parameters
Type | Name | Description |
---|---|---|
Error |
causingErrorClass | |
bool | autoRollbackAttempt | |
bool | retryTransaction | |
Exception | cause | |
Transaction |
finalErrorToRaise |
Fields
| Edit this page View SourceNone
Placeholder for "no failure".
Declaration
public const TransactionOperationFailedException? None = null
Field Value
Type | Description |
---|---|
Transaction |
Properties
| Edit this page View SourceAutoRollbackAttempt
Gets a value indicating whether the transaction attempt should automatically be rolled back.
Declaration
public bool AutoRollbackAttempt { get; }
Property Value
Type | Description |
---|---|
bool |
Cause
Gets the exception that caused the failure.
Declaration
public Exception Cause { get; }
Property Value
Type | Description |
---|---|
Exception |
CausingErrorClass
Gets the general class of error that caused the exception.
Declaration
public ErrorClass CausingErrorClass { get; }
Property Value
Type | Description |
---|---|
Error |
ExceptionNumber
Gets the Exception Number.
Declaration
public long ExceptionNumber { get; }
Property Value
Type | Description |
---|---|
long |
FinalErrorToRaise
Gets the final error to raise if this is the last attempt in the transaction.
Declaration
public TransactionOperationFailedException.FinalError FinalErrorToRaise { get; }
Property Value
Type | Description |
---|---|
Transaction |
RetryTransaction
Gets a value indicating whether this transaction can be retried or not.
Declaration
public bool RetryTransaction { get; }
Property Value
Type | Description |
---|---|
bool |