Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class QueryErrorCause

The "cause" object returned by the query service inside a transaction-related error (e.g. a CAS mismatch at COMMIT). Carries the protocol hints the transactions layer needs to decide whether to retry/rollback and which final error to raise.

Inheritance
object
QueryErrorCause
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Query
Assembly: Couchbase.NetClient.dll
Syntax
[InterfaceStability(Level.Volatile)]
public class QueryErrorCause
Remarks

Deserialized as part of Error by whichever serializer the cluster is configured with (Newtonsoft or System.Text.Json), hence the dual attributes - matching Error and Reason.

Constructors

View Source

QueryErrorCause(object?, bool?, bool?, string?)

Declaration
public QueryErrorCause(object? cause, bool? rollback, bool? retry, string? raise)
Parameters
Type Name Description
object cause
bool? rollback
bool? retry
string raise

Properties

View Source

cause

Declaration
[JsonProperty("cause")]
[JsonPropertyName("cause")]
public object? cause { get; }
Property Value
Type Description
object
View Source

raise

Declaration
[JsonProperty("raise")]
[JsonPropertyName("raise")]
public string? raise { get; }
Property Value
Type Description
string
View Source

retry

Declaration
[JsonProperty("retry")]
[JsonPropertyName("retry")]
public bool? retry { get; }
Property Value
Type Description
bool?
View Source

rollback

Declaration
[JsonProperty("rollback")]
[JsonPropertyName("rollback")]
public bool? rollback { get; }
Property Value
Type Description
bool?
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.