CasMismatchException
extends CouchbaseException
in package
Indicates an optimistic locking failure.
The operation failed because the specified compare and swap (CAS) value differs from the document's actual CAS value. This means the document was modified since the original CAS value was acquired.
The application should usually respond by fetching a fresh version of the document and repeating the failed operation.
Table of Contents
- $context : array<string|int, mixed>|null
- __construct() : mixed
- getContext() : array<string|int, mixed>|null
- Returns error details.
Properties
$context
private
array<string|int, mixed>|null
$context
Methods
__construct()
public
__construct([mixed $message = "" ], mixed $code[, Throwable $previous = null ][, array<string|int, mixed> $context = null ]) : mixed
Parameters
- $message : mixed = ""
- $code : mixed
- $previous : Throwable = null
- $context : array<string|int, mixed> = null
Return values
mixed —getContext()
Returns error details.
public
getContext() : array<string|int, mixed>|null