TimeoutException extends CouchbaseException
in package

The {Timeout} signals that an operation timed out before it could be completed.

It is important to understand that the timeout itself is always just the effect an underlying cause, never the issue itself. The root cause might not even be on the application side, also the network and server need to be taken into account.

Right now the SDK can throw two different implementations of this class:

{AmbiguousTimeout}:: The operation might have caused a side effect on the server and should not be retried without actions and checks.

{UnambiguousTimeout}:: The operation has not caused a side effect on the server and is safe to retry. This is always the case for idempotent operations. For non-idempotent operations it depends on the state the operation was in at the time of cancellation.

Table of Contents

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




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


Returns error details.

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


Search results