Couchbase .NET SDK | 3.7.2
Search Results for

    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.Context
    CouchbaseException.ToString()
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Couchbase.Client.Transactions.Error.External
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class TransactionOperationFailedException : CouchbaseException, ISerializable, IClassifiedTransactionError

    Constructors

    | Edit this page 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

    | Edit this page View Source

    None

    Placeholder for "no failure".

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

    Properties

    | Edit this page 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
    | Edit this page View Source

    Cause

    Gets the exception that caused the failure.

    Declaration
    public Exception Cause { get; }
    Property Value
    Type Description
    Exception
    | Edit this page View Source

    CausingErrorClass

    Gets the general class of error that caused the exception.

    Declaration
    public ErrorClass CausingErrorClass { get; }
    Property Value
    Type Description
    ErrorClass
    | Edit this page View Source

    ExceptionNumber

    Gets the Exception Number.

    Declaration
    public long ExceptionNumber { get; }
    Property Value
    Type Description
    long
    | Edit this page 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
    | Edit this page 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)
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.