Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class TransactionOperationFailedException

Indicates an operation in a transaction failed.

Inheritance
object
Exception
CouchbaseException
TransactionOperationFailedException
Implements
ISerializable
IClassifiedTransactionError
Inherited Members
CouchbaseException.ToString()
CouchbaseException.Context
Exception.GetBaseException()
Exception.GetType()
Exception.TargetSite
Exception.Message
Exception.Data
Exception.InnerException
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.StackTrace
Exception.SerializeObjectState
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Client.Transactions.Error.External
Assembly: Couchbase.NetClient.dll
Syntax
public class TransactionOperationFailedException : CouchbaseException, ISerializable, IClassifiedTransactionError

Constructors

View Source

TransactionOperationFailedException(ErrorClass, bool, bool, Exception, FinalError)

Declaration
public TransactionOperationFailedException(ErrorClass causingErrorClass, bool autoRollbackAttempt, bool retryTransaction, Exception cause, TransactionOperationFailedException.FinalError finalErrorToRaise)
Parameters
Type Name Description
ErrorClass causingErrorClass
bool autoRollbackAttempt
bool retryTransaction
Exception cause
TransactionOperationFailedException.FinalError finalErrorToRaise

Fields

View Source

None

Placeholder for "no failure".

Declaration
public const TransactionOperationFailedException? None = null
Field Value
Type Description
TransactionOperationFailedException

Properties

View Source

AutoRollbackAttempt

Gets a value indicating whether the transaction attempt should automatically be rolled back.

Declaration
public bool AutoRollbackAttempt { get; }
Property Value
Type Description
bool
View Source

Cause

Gets the exception that caused the failure.

Declaration
public Exception Cause { get; }
Property Value
Type Description
Exception
View Source

CausingErrorClass

Gets the general class of error that caused the exception.

Declaration
public ErrorClass CausingErrorClass { get; }
Property Value
Type Description
ErrorClass
View Source

ExceptionNumber

Gets the Exception Number.

Declaration
public long ExceptionNumber { get; }
Property Value
Type Description
long
View Source

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
TransactionOperationFailedException.FinalError
View Source

RetryTransaction

Gets a value indicating whether this transaction can be retried or not.

Declaration
public bool RetryTransaction { get; }
Property Value
Type Description
bool

Implements

ISerializable
IClassifiedTransactionError

Extension Methods

ExceptionExtensions.ResolveRetryReason(CouchbaseException)
ErrorClassExtensions.Classify(Exception)
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.