Documentation

DeltaInvalidException extends CouchbaseException
in package

Subdocument exception thrown when the delta in an arithmetic operation (eg counter) is invalid. In this SDK, this is equivalent to saying that the delta is zero.

Note that the server also returns the corresponding error code when the delta value itself is too big, or not a number, but since the SDK enforces deltas to be of type long, these cases shouldn't come up.

Table of Contents

$context  : array<string|int, mixed>|null
__construct()  : mixed
getContext()  : array<string|int, mixed>|null
Returns error details.

Properties

Methods

__construct()

public __construct([mixed $message = "" ], mixed $code[, Throwable|null $previous = null ][, array<string|int, mixed>|null $context = null ]) : mixed
Parameters
$message : mixed = ""
$code : mixed
$previous : Throwable|null = null
$context : array<string|int, mixed>|null = null
Return values
mixed

getContext()

Returns error details.

public getContext() : array<string|int, mixed>|null
Tags
since
4.0.0
Return values
array<string|int, mixed>|null

        

Search results