Oihana PHP Arango

ErrorCode uses ConstantsTrait

Catalogue of ArangoDB internal error numbers that the client maps to dedicated {@see \oihana\arango\clients\exceptions\ArangoException} subclasses, or that callers may want to inspect directly.

The codes are stable across ArangoDB versions and are returned in the errorNum field of error responses (independently of the HTTP status).

Only the codes the client actively handles are listed here. Extend this class in your application if you need to recognise additional codes (graphs, views, transactions, …).

Tags
see
https://docs.arangodb.com/stable/develop/error-codes-and-meanings/
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Constants

ARANGO_COLLECTION_NOT_FOUND  : int = 1203
The requested collection was not found.
ARANGO_CONFLICT  : int = 1200
Write-write conflict on the same document. Retryable after a short backoff.
ARANGO_DATABASE_NAME_INVALID  : int = 1229
The supplied database name is invalid.
ARANGO_DATABASE_NOT_FOUND  : int = 1228
The requested database was not found.
ARANGO_DOCUMENT_NOT_FOUND  : int = 1202
The requested document was not found.
ARANGO_DOCUMENT_REV_BAD  : int = 1218
Document revision mismatch (optimistic concurrency check failed).
ARANGO_DUPLICATE_NAME  : int = 1207
Duplicate name (collection, view, graph, index, analyzer).
ARANGO_ILLEGAL_NAME  : int = 1208
Illegal name (invalid characters, reserved, or out of length range).
ARANGO_INDEX_NOT_FOUND  : int = 1221
The requested index was not found.
ARANGO_UNIQUE_CONSTRAINT_VIOLATED  : int = 1210
Unique constraint violation (duplicate value on a unique index).
CLUSTER_BACKEND_UNAVAILABLE  : int = 3002
Cluster backend (DBServer) is currently unavailable. Retryable after a short backoff.
TRANSACTION_ABORTED  : int = 1656
The transaction was aborted (typically by an explicit `abort()` call or by an idle-timeout server-side).
TRANSACTION_ALREADY_ABORTED  : int = 1658
The transaction has already been aborted; further operations on its handle are refused.
TRANSACTION_ALREADY_COMMITTED  : int = 1657
The transaction has already been committed; further operations on its handle are refused.
TRANSACTION_DISALLOWED_OPERATION  : int = 1652
The operation is not allowed in the current transaction context (e.g. a dirty read inside a transaction).
TRANSACTION_NOT_FOUND  : int = 1655
The supplied transaction id is unknown to the server — either it was never started, it has expired (TTL), or it has been terminated.
TRANSACTION_OPERATION_TIMEOUT  : int = 1654
A transaction operation timed out waiting on a lock; the transaction is left in an inconsistent state and should be aborted.

Constants

ARANGO_COLLECTION_NOT_FOUND

The requested collection was not found.

public int ARANGO_COLLECTION_NOT_FOUND = 1203

ARANGO_CONFLICT

Write-write conflict on the same document. Retryable after a short backoff.

public int ARANGO_CONFLICT = 1200

ARANGO_DATABASE_NAME_INVALID

The supplied database name is invalid.

public int ARANGO_DATABASE_NAME_INVALID = 1229

ARANGO_DATABASE_NOT_FOUND

The requested database was not found.

public int ARANGO_DATABASE_NOT_FOUND = 1228

ARANGO_DOCUMENT_NOT_FOUND

The requested document was not found.

public int ARANGO_DOCUMENT_NOT_FOUND = 1202

ARANGO_DOCUMENT_REV_BAD

Document revision mismatch (optimistic concurrency check failed).

public int ARANGO_DOCUMENT_REV_BAD = 1218

ARANGO_DUPLICATE_NAME

Duplicate name (collection, view, graph, index, analyzer).

public int ARANGO_DUPLICATE_NAME = 1207

ARANGO_ILLEGAL_NAME

Illegal name (invalid characters, reserved, or out of length range).

public int ARANGO_ILLEGAL_NAME = 1208

ARANGO_INDEX_NOT_FOUND

The requested index was not found.

public int ARANGO_INDEX_NOT_FOUND = 1221

ARANGO_UNIQUE_CONSTRAINT_VIOLATED

Unique constraint violation (duplicate value on a unique index).

public int ARANGO_UNIQUE_CONSTRAINT_VIOLATED = 1210

CLUSTER_BACKEND_UNAVAILABLE

Cluster backend (DBServer) is currently unavailable. Retryable after a short backoff.

public int CLUSTER_BACKEND_UNAVAILABLE = 3002

TRANSACTION_ABORTED

The transaction was aborted (typically by an explicit `abort()` call or by an idle-timeout server-side).

public int TRANSACTION_ABORTED = 1656

TRANSACTION_ALREADY_ABORTED

The transaction has already been aborted; further operations on its handle are refused.

public int TRANSACTION_ALREADY_ABORTED = 1658

TRANSACTION_ALREADY_COMMITTED

The transaction has already been committed; further operations on its handle are refused.

public int TRANSACTION_ALREADY_COMMITTED = 1657

TRANSACTION_DISALLOWED_OPERATION

The operation is not allowed in the current transaction context (e.g. a dirty read inside a transaction).

public int TRANSACTION_DISALLOWED_OPERATION = 1652

TRANSACTION_NOT_FOUND

The supplied transaction id is unknown to the server — either it was never started, it has expired (TTL), or it has been terminated.

public int TRANSACTION_NOT_FOUND = 1655

TRANSACTION_OPERATION_TIMEOUT

A transaction operation timed out waiting on a lock; the transaction is left in an inconsistent state and should be aborted.

public int TRANSACTION_OPERATION_TIMEOUT = 1654
On this page

Search results