Enum ErrorCode

Source
pub enum ErrorCode {
Show 314 variants NoError, Failed, SysError, OutOfMemory, Internal, IllegalNumber, NumericOverflow, IllegalOption, DeadPid, NotImplemented, BadParameter, Forbidden, OutOfMemoryMmap, CorruptedCsv, FileNotFound, CannotWriteFile, CannotOverwriteFile, TypeError, LockTimeout, CannotCreateDirectory, CannotCreateTempFile, RequestCanceled, Debug, IpAddressInvalid, FileExists, Locked, Deadlock, ShuttingDown, OnlyEnterprise, ResourceLimit, HttpBadParameter, HttpUnauthorized, HttpForbidden, HttpNotFound, HttpMethodNotAllowed, HttpNotAcceptable, HttpConflict, HttpPreconditionFailed, HttpServerError, HttpServiceUnavailable, HttpCorruptedJson, HttpSuperfluousSuffices, ArangoIllegalState, ArangoDatafileSealed, ArangoReadOnly, ArangoDuplicateIdentifier, ArangoDatafileUnreadable, ArangoDatafileEmpty, ArangoRecovery, ArangoDatafileStatisticsNotFound, ArangoCorruptedDatafile, ArangoIllegalParameterFile, ArangoCorruptedCollection, ArangoMmapFailed, ArangoFilesystemFull, ArangoNoJournal, ArangoDatafileAlreadyExists, ArangoDatadirLocked, ArangoCollectionDirectoryAlreadyExists, ArangoMsyncFailed, ArangoDatadirUnlockable, ArangoSyncTimeout, ArangoConflict, ArangoDatadirInvalid, ArangoDocumentNotFound, ArangoCollectionNotFound, ArangoCollectionParameterMissing, ArangoDocumentHandleBad, ArangoMaximalSizeTooSmall, ArangoDuplicateName, ArangoIllegalName, ArangoNoIndex, ArangoUniqueConstraintViolated, ArangoViewNotFound, ArangoIndexNotFound, ArangoCrossCollectionRequest, ArangoIndexHandleBad, ArangoDocumentTooLarge, ArangoCollectionNotUnloaded, ArangoCollectionTypeInvalid, ArangoValidationFailed, ArangoAttributeParserFailed, ArangoDocumentKeyBad, ArangoDocumentKeyUnexpected, ArangoDatadirNotWritable, ArangoOutOfKeys, ArangoDocumentKeyMissing, ArangoDocumentTypeInvalid, ArangoDatabaseNotFound, ArangoDatabaseNameInvalid, ArangoUseSystemDatabase, ArangoEndpointNotFound, ArangoInvalidKeyGenerator, ArangoInvalidEdgeAttribute, ArangoIndexDocumentAttributeMissing, ArangoIndexCreationFailed, ArangoWriteThrottleTimeout, ArangoCollectionTypeMismatch, ArangoCollectionNotLoaded, ArangoDocumentRevBad, ArangoDatafileFull, ArangoEmptyDatadir, ArangoTryAgain, ArangoBusy, ArangoMergeInProgress, ArangoIoError, ReplicationNoResponse, ReplicationInvalidResponse, ReplicationMasterError, ReplicationMasterIncompatible, ReplicationMasterChange, ReplicationLoop, ReplicationUnexpectedMarker, ReplicationInvalidApplierState, ReplicationUnexpectedTransaction, ReplicationInvalidApplierConfiguration, ReplicationRunning, ReplicationApplierStopped, ReplicationNoStartTick, ReplicationStartTickNotPresent, ReplicationWrongChecksumFormat, ReplicationWrongChecksum, ClusterNoAgency, ClusterNoCoordinatorHeader, ClusterCouldNotLockPlan, ClusterCollectionIdExists, ClusterCouldNotCreateCollectionInPlan, ClusterCouldNotReadCurrentVersion, ClusterCouldNotCreateCollection, ClusterTimeout, ClusterCouldNotRemoveCollectionInPlan, ClusterCouldNotRemoveCollectionInCurrent, ClusterCouldNotCreateDatabaseInPlan, ClusterCouldNotCreateDatabase, ClusterCouldNotRemoveDatabaseInPlan, ClusterCouldNotRemoveDatabaseInCurrent, ClusterShardGone, ClusterConnectionLost, ClusterMustNotSpecifyKey, ClusterGotContradictingAnswers, ClusterNotAllShardingAttributesGiven, ClusterMustNotChangeShardingAttributes, ClusterUnsupported, ClusterOnlyOnCoordinator, ClusterReadingPlanAgency, ClusterCouldNotTruncateCollection, ClusterAqlCommunication, ArangoDocumentNotFoundOrShardingAttributesChanged, ClusterCouldNotDetermineId, ClusterOnlyOnDbserver, ClusterBackendUnavailable, ClusterUnknownCallbackEndpoint, ClusterAgencyStructureInvalid, ClusterAqlCollectionOutOfSync, ClusterCouldNotCreateIndexInPlan, ClusterCouldNotDropIndexInPlan, ClusterChainOfDistributeshardslike, ClusterMustNotDropCollOtherDistributeshardslike, ClusterUnknownDistributeshardslike, ClusterInsufficientDbservers, ClusterCouldNotDropFollower, ClusterShardLeaderRefusesReplication, ClusterShardFollowerRefusesOperation, ClusterShardLeaderResigned, ClusterAgencyCommunicationFailed, ClusterDistributeShardsLikeReplicationFactor, ClusterDistributeShardsLikeNumberOfShards, QueryKilled, QueryParse, QueryEmpty, QueryScript, QueryNumberOutOfRange, QueryVariableNameInvalid, QueryVariableRedeclared, QueryVariableNameUnknown, QueryCollectionLockFailed, QueryTooManyCollections, QueryDocumentAttributeRedeclared, QueryFunctionNameUnknown, QueryFunctionArgumentNumberMismatch, QueryFunctionArgumentTypeMismatch, QueryInvalidRegex, QueryBindParametersInvalid, QueryBindParameterMissing, QueryBindParameterUndeclared, QueryBindParameterType, QueryInvalidLogicalValue, QueryInvalidArithmeticValue, QueryDivisionByZero, QueryArrayExpected, QueryFailCalled, QueryGeoIndexMissing, QueryFulltextIndexMissing, QueryInvalidDateValue, QueryMultiModify, QueryInvalidAggregateExpression, QueryCompileTimeOptions, QueryExceptionOptions, QueryCollectionUsedInExpression, QueryDisallowedDynamicCall, QueryAccessAfterModification, QueryFunctionInvalidName, QueryFunctionInvalidCode, QueryFunctionNotFound, QueryFunctionRuntimeError, QueryBadJsonPlan, QueryNotFound, QueryInUse, CursorNotFound, CursorBusy, TransactionInternal, TransactionNested, TransactionUnregisteredCollection, TransactionDisallowedOperation, TransactionAborted, UserInvalidName, UserInvalidPassword, UserDuplicate, UserNotFound, UserChangePassword, ServiceInvalidName, ServiceInvalidMount, ServiceDownloadFailed, ServiceUploadFailed, LdapCannotInit, LdapCannotSetOption, LdapCannotBind, LdapCannotUnbind, LdapCannotSearch, LdapCannotStartTls, LdapFoundNoObjects, LdapNotOneUserFound, LdapUserNotIdentified, LdapInvalidMode, TaskInvalidId, TaskDuplicateId, TaskNotFound, GraphInvalidGraph, GraphCouldNotCreateGraph, GraphInvalidVertex, GraphCouldNotCreateVertex, GraphCouldNotChangeVertex, GraphInvalidEdge, GraphCouldNotCreateEdge, GraphCouldNotChangeEdge, GraphTooManyIterations, GraphInvalidFilterResult, GraphCollectionMultiUse, GraphCollectionUseInMultiGraphs, GraphCreateMissingName, GraphCreateMalformedEdgeDefinition, GraphNotFound, GraphDuplicate, GraphVertexColDoesNotExist, GraphWrongCollectionTypeVertex, GraphNotInOrphanCollection, GraphCollectionUsedInEdgeDef, GraphEdgeCollectionNotUsed, GraphNotAnArangoCollection, GraphNoGraphCollection, GraphInvalidExampleArrayObjectString, GraphInvalidExampleArrayObject, GraphInvalidNumberOfArguments, GraphInvalidParameter, GraphInvalidId, GraphCollectionUsedInOrphans, GraphEdgeColDoesNotExist, GraphEmpty, SessionUnknown, SessionExpired, SimpleClientUnknownError, SimpleClientCouldNotConnect, SimpleClientCouldNotWrite, SimpleClientCouldNotRead, CommunicatorRequestAborted, CommunicatorDisabled, MalformedManifestFile, InvalidServiceManifest, ServiceFilesMissing, ServiceFilesOutdated, InvalidFoxxOptions, InvalidMountpoint, ServiceNotFound, ServiceNeedsConfiguration, ServiceMountpointConflict, ServiceManifestNotFound, ServiceOptionsMalformed, ServiceSourceNotFound, ServiceSourceError, ServiceUnknownScript, ModuleNotFound, ModuleSyntaxError, ModuleFailure, NoSmartCollection, NoSmartGraphAttribute, CannotDropSmartCollection, KeyMustBePrefixedWithSmartGraphAttribute, IllegalSmartGraphAttribute, AgencyInquirySyntax, AgencyInformMustBeObject, AgencyInformMustContainTerm, AgencyInformMustContainId, AgencyInformMustContainActive, AgencyInformMustContainPool, AgencyInformMustContainMinPing, AgencyInformMustContainMaxPing, AgencyInformMustContainTimeoutMult, AgencyInquireClientIdMustBeString, AgencyCannotRebuildDbs, SupervisionGeneralFailure, DispatcherIsStopping, QueueUnknown, QueueFull, UnknownError,
}
Expand description

An enumeration of all error codes that are defined for ArangoDB.

Variants§

§

NoError

No error has occurred.

§

Failed

Will be raised when a general error occurred.

§

SysError

Will be raised when operating system error occurred.

§

OutOfMemory

Will be raised when there is a memory shortage.

§

Internal

Will be raised when an internal error occurred.

§

IllegalNumber

Will be raised when an illegal representation of a number was given.

§

NumericOverflow

Will be raised when a numeric overflow occurred.

§

IllegalOption

Will be raised when an unknown option was supplied by the user.

§

DeadPid

Will be raised when a PID without a living process was found.

§

NotImplemented

Will be raised when hitting an unimplemented feature.

§

BadParameter

Will be raised when the parameter does not fulfill the requirements.

§

Forbidden

Will be raised when you are missing permission for the operation.

§

OutOfMemoryMmap

Will be raised when there is a memory shortage.

§

CorruptedCsv

Will be raised when encountering a corrupt csv line.

§

FileNotFound

Will be raised when a file is not found.

§

CannotWriteFile

Will be raised when a file cannot be written.

§

CannotOverwriteFile

Will be raised when an attempt is made to overwrite an existing file.

§

TypeError

Will be raised when a type error is encountered.

§

LockTimeout

Will be raised when there’s a timeout waiting for a lock.

§

CannotCreateDirectory

Will be raised when an attempt to create a directory fails.

§

CannotCreateTempFile

Will be raised when an attempt to create a temporary file fails.

§

RequestCanceled

Will be raised when a request is canceled by the user.

§

Debug

Will be raised intentionally during debugging.

§

IpAddressInvalid

Will be raised when the structure of an IP address is invalid.

§

FileExists

Will be raised when a file already exists.

§

Locked

Will be raised when a resource or an operation is locked.

§

Deadlock

Will be raised when a deadlock is detected when accessing collections.

§

ShuttingDown

Will be raised when a call cannot succeed because a server shutdown is already in progress.

§

OnlyEnterprise

Will be raised when an enterprise-feature is requested from the community edition.

§

ResourceLimit

Will be raised when the resources used by an operation exceed the configured maximum value.

§

HttpBadParameter

Will be raised when the HTTP request does not fulfill the requirements.

§

HttpUnauthorized

Will be raised when authorization is required but the user is not authorized.

§

HttpForbidden

Will be raised when the operation is forbidden.

§

HttpNotFound

Will be raised when an URI is unknown.

§

HttpMethodNotAllowed

Will be raised when an unsupported HTTP method is used for an operation.

§

HttpNotAcceptable

Will be raised when an unsupported HTTP content type is used for an operation, or if a request is not acceptable for a leader or follower.

§

HttpConflict

Will be raised when a conflict with the current state of a resource is found.

§

HttpPreconditionFailed

Will be raised when a precondition for an HTTP request is not met.

§

HttpServerError

Will be raised when an internal server error is encountered.

§

HttpServiceUnavailable

Will be raised when a service is temporarily unavailable.

§

HttpCorruptedJson

Will be raised when a string representation of a JSON object is corrupt.

§

HttpSuperfluousSuffices

Will be raised when the URL contains superfluous suffices.

§

ArangoIllegalState

Internal error that will be raised when the datafile is not in the required state.

§

ArangoDatafileSealed

Internal error that will be raised when trying to write to a datafile.

§

ArangoReadOnly

Internal error that will be raised when trying to write to a read-only datafile or collection.

§

ArangoDuplicateIdentifier

Internal error that will be raised when a identifier duplicate is detected.

§

ArangoDatafileUnreadable

Internal error that will be raised when a datafile is unreadable.

§

ArangoDatafileEmpty

Internal error that will be raised when a datafile is empty.

§

ArangoRecovery

Will be raised when an error occurred during WAL log file recovery.

§

ArangoDatafileStatisticsNotFound

Will be raised when a required datafile statistics object was not found.

§

ArangoCorruptedDatafile

Will be raised when a corruption is detected in a datafile.

§

ArangoIllegalParameterFile

Will be raised if a parameter file is corrupted or cannot be read.

§

ArangoCorruptedCollection

Will be raised when a collection contains one or more corrupted data files.

§

ArangoMmapFailed

Will be raised when the system call mmap failed.

§

ArangoFilesystemFull

Will be raised when the filesystem is full.

§

ArangoNoJournal

Will be raised when a journal cannot be created.

§

ArangoDatafileAlreadyExists

Will be raised when the datafile cannot be created or renamed because a file of the same name already exists.

§

ArangoDatadirLocked

Will be raised when the database directory is locked by a different process.

§

ArangoCollectionDirectoryAlreadyExists

Will be raised when the collection cannot be created because a directory of the same name already exists.

§

ArangoMsyncFailed

Will be raised when the system call msync failed.

§

ArangoDatadirUnlockable

Will be raised when the server cannot lock the database directory on startup.

§

ArangoSyncTimeout

Will be raised when the server waited too long for a datafile to be synced to disk.

§

ArangoConflict

Will be raised when updating or deleting a document and a conflict has been detected.

§

ArangoDatadirInvalid

Will be raised when a non-existing database directory was specified when starting the database.

§

ArangoDocumentNotFound

Will be raised when a document with a given identifier or handle is unknown.

§

ArangoCollectionNotFound

Will be raised when a collection with the given identifier or name is unknown.

§

ArangoCollectionParameterMissing

Will be raised when the collection parameter is missing.

§

ArangoDocumentHandleBad

Will be raised when a document handle is corrupt.

§

ArangoMaximalSizeTooSmall

Will be raised when the maximal size of the journal is too small.

§

ArangoDuplicateName

Will be raised when a name duplicate is detected.

§

ArangoIllegalName

Will be raised when an illegal name is detected.

§

ArangoNoIndex

Will be raised when no suitable index for the query is known.

§

ArangoUniqueConstraintViolated

Will be raised when there is a unique constraint violation.

§

ArangoViewNotFound

Will be raised when a view with the given identifier or name is unknown.

§

ArangoIndexNotFound

Will be raised when an index with a given identifier is unknown.

§

ArangoCrossCollectionRequest

Will be raised when a cross-collection is requested.

§

ArangoIndexHandleBad

Will be raised when a index handle is corrupt.

§

ArangoDocumentTooLarge

Will be raised when the document cannot fit into any datafile because of it is too large.

§

ArangoCollectionNotUnloaded

Will be raised when a collection should be unloaded, but has a different status.

§

ArangoCollectionTypeInvalid

Will be raised when an invalid collection type is used in a request.

§

ArangoValidationFailed

Will be raised when the validation of an attribute of a structure failed.

§

ArangoAttributeParserFailed

Will be raised when parsing an attribute name definition failed.

§

ArangoDocumentKeyBad

Will be raised when a document key is corrupt.

§

ArangoDocumentKeyUnexpected

Will be raised when a user-defined document key is supplied for collections with auto key generation.

§

ArangoDatadirNotWritable

Will be raised when the server’s database directory is not writable for the current user.

§

ArangoOutOfKeys

Will be raised when a key generator runs out of keys.

§

ArangoDocumentKeyMissing

Will be raised when a document key is missing.

§

ArangoDocumentTypeInvalid

Will be raised when there is an attempt to create a document with an invalid type.

§

ArangoDatabaseNotFound

Will be raised when a non-existing database is accessed.

§

ArangoDatabaseNameInvalid

Will be raised when an invalid database name is used.

§

ArangoUseSystemDatabase

Will be raised when an operation is requested in a database other than the system database.

§

ArangoEndpointNotFound

Will be raised when there is an attempt to delete a non-existing endpoint.

§

ArangoInvalidKeyGenerator

Will be raised when an invalid key generator description is used.

§

ArangoInvalidEdgeAttribute

will be raised when the _from or _to values of an edge are undefined or contain an invalid value.

§

ArangoIndexDocumentAttributeMissing

Will be raised when an attempt to insert a document into an index is caused by in the document not having one or more attributes which the index is built on.

§

ArangoIndexCreationFailed

Will be raised when an attempt to create an index has failed.

§

ArangoWriteThrottleTimeout

Will be raised when the server is write-throttled and a write operation has waited too long for the server to process queued operations.

§

ArangoCollectionTypeMismatch

Will be raised when a collection has a different type from what has been expected.

§

ArangoCollectionNotLoaded

Will be raised when a collection is accessed that is not yet loaded.

§

ArangoDocumentRevBad

Will be raised when a document revision is corrupt or is missing where needed.

§

ArangoDatafileFull

Will be raised when the datafile reaches its limit.

§

ArangoEmptyDatadir

Will be raised when encountering an empty server database directory.

§

ArangoTryAgain

Will be raised when an operation should be retried.

§

ArangoBusy

Will be raised when storage engine is busy.

§

ArangoMergeInProgress

Will be raised when storage engine has a datafile merge in progress and cannot complete the operation.

§

ArangoIoError

Will be raised when storage engine encounters an I/O error.

§

ReplicationNoResponse

Will be raised when the replication applier does not receive any or an incomplete response from the master.

§

ReplicationInvalidResponse

Will be raised when the replication applier receives an invalid response from the master.

§

ReplicationMasterError

Will be raised when the replication applier receives a server error from the master.

§

ReplicationMasterIncompatible

Will be raised when the replication applier connects to a master that has an incompatible version.

§

ReplicationMasterChange

Will be raised when the replication applier connects to a different master than before.

§

ReplicationLoop

Will be raised when the replication applier is asked to connect to itself for replication.

§

ReplicationUnexpectedMarker

Will be raised when an unexpected marker is found in the replication log stream.

§

ReplicationInvalidApplierState

Will be raised when an invalid replication applier state file is found.

§

ReplicationUnexpectedTransaction

Will be raised when an unexpected transaction id is found.

§

ReplicationInvalidApplierConfiguration

Will be raised when the configuration for the replication applier is invalid.

§

ReplicationRunning

Will be raised when there is an attempt to perform an operation while the replication applier is running.

§

ReplicationApplierStopped

Special error code used to indicate the replication applier was stopped by a user.

§

ReplicationNoStartTick

Will be raised when the replication applier is started without a known start tick value.

§

ReplicationStartTickNotPresent

Will be raised when the replication applier fetches data using a start tick, but that start tick is not present on the logger server anymore.

§

ReplicationWrongChecksumFormat

Will be raised when the format of the checksum is wrong

§

ReplicationWrongChecksum

Will be raised when a new born follower submits a wrong checksum

§

ClusterNoAgency

Will be raised when none of the agency servers can be connected to.

§

ClusterNoCoordinatorHeader

Will be raised when a DB server in a cluster receives a HTTP request without a coordinator header.

§

ClusterCouldNotLockPlan

Will be raised when a coordinator in a cluster cannot lock the Plan hierarchy in the agency.

§

ClusterCollectionIdExists

Will be raised when a coordinator in a cluster tries to create a collection and the collection ID already exists.

§

ClusterCouldNotCreateCollectionInPlan

Will be raised when a coordinator in a cluster cannot create an entry for a new collection in the Plan hierarchy in the agency.

§

ClusterCouldNotReadCurrentVersion

Will be raised when a coordinator in a cluster cannot read the Version entry in the Current hierarchy in the agency.

§

ClusterCouldNotCreateCollection

Will be raised when a coordinator in a cluster notices that some DBServers report problems when creating shards for a new collection.

§

ClusterTimeout

Will be raised when a coordinator in a cluster runs into a timeout for some cluster wide operation.

§

ClusterCouldNotRemoveCollectionInPlan

Will be raised when a coordinator in a cluster cannot remove an entry for a collection in the Plan hierarchy in the agency.

§

ClusterCouldNotRemoveCollectionInCurrent

Will be raised when a coordinator in a cluster cannot remove an entry for a collection in the Current hierarchy in the agency.

§

ClusterCouldNotCreateDatabaseInPlan

Will be raised when a coordinator in a cluster cannot create an entry for a new database in the Plan hierarchy in the agency.

§

ClusterCouldNotCreateDatabase

Will be raised when a coordinator in a cluster notices that some DBServers report problems when creating databases for a new cluster wide database.

§

ClusterCouldNotRemoveDatabaseInPlan

Will be raised when a coordinator in a cluster cannot remove an entry for a database in the Plan hierarchy in the agency.

§

ClusterCouldNotRemoveDatabaseInCurrent

Will be raised when a coordinator in a cluster cannot remove an entry for a database in the Current hierarchy in the agency.

§

ClusterShardGone

Will be raised when a coordinator in a cluster cannot determine the shard that is responsible for a given document.

§

ClusterConnectionLost

Will be raised when a coordinator in a cluster loses an HTTP connection to a DBserver in the cluster whilst transferring data.

§

ClusterMustNotSpecifyKey

Will be raised when a coordinator in a cluster finds that the _key attribute was specified in a sharded collection the uses not only _key as sharding attribute.

§

ClusterGotContradictingAnswers

Will be raised if a coordinator in a cluster gets conflicting results from different shards, which should never happen.

§

ClusterNotAllShardingAttributesGiven

Will be raised if a coordinator tries to find out which shard is responsible for a partial document, but cannot do this because not all sharding attributes are specified.

§

ClusterMustNotChangeShardingAttributes

Will be raised if there is an attempt to update the value of a shard attribute.

§

ClusterUnsupported

Will be raised when there is an attempt to carry out an operation that is not supported in the context of a sharded collection.

§

ClusterOnlyOnCoordinator

Will be raised if there is an attempt to run a coordinator-only operation on a different type of node.

§

ClusterReadingPlanAgency

Will be raised if a coordinator or DBserver cannot read the Plan in the agency.

§

ClusterCouldNotTruncateCollection

Will be raised if a coordinator cannot truncate all shards of a cluster collection.

§

ClusterAqlCommunication

Will be raised if the internal communication of the cluster for AQL produces an error.

§

ArangoDocumentNotFoundOrShardingAttributesChanged

Will be raised when a document with a given identifier or handle is unknown, or if the sharding attributes have been changed in a REPLACE operation in the cluster.

§

ClusterCouldNotDetermineId

Will be raised if a cluster server at startup could not determine its own ID from the local info provided.

§

ClusterOnlyOnDbserver

Will be raised if there is an attempt to run a DBserver-only operation on a different type of node.

§

ClusterBackendUnavailable

Will be raised if a required db server can’t be reached.

§

ClusterUnknownCallbackEndpoint

An endpoint couldn’t be found

§

ClusterAgencyStructureInvalid

The structure in the agency is invalid

§

ClusterAqlCollectionOutOfSync

Will be raised if a collection needed during query execution is out of sync. This currently can only happen when using satellite collections

§

ClusterCouldNotCreateIndexInPlan

Will be raised when a coordinator in a cluster cannot create an entry for a new index in the Plan hierarchy in the agency.

§

ClusterCouldNotDropIndexInPlan

Will be raised when a coordinator in a cluster cannot remove an index from the Plan hierarchy in the agency.

§

ClusterChainOfDistributeshardslike

Will be raised if one tries to create a collection with a distributeShardsLike attribute which points to another collection that also has one.

§

ClusterMustNotDropCollOtherDistributeshardslike

Will be raised if one tries to drop a collection to which another collection points with its distributeShardsLike attribute.

§

ClusterUnknownDistributeshardslike

Will be raised if one tries to create a collection which points to an unknown collection in its distributeShardsLike attribute.

§

ClusterInsufficientDbservers

Will be raised if one tries to create a collection with a replicationFactor greater than the available number of DBServers.

§

ClusterCouldNotDropFollower

Will be raised if a follower that ought to be dropped could not be dropped in the agency (under Current).

§

ClusterShardLeaderRefusesReplication

Will be raised if a replication operation is refused by a shard leader.

§

ClusterShardFollowerRefusesOperation

Will be raised if a non-replication operation is refused by a shard follower.

§

ClusterShardLeaderResigned

Will be raised if a non-replication operation is refused by a former shard leader that has found out that it is no longer the leader.

§

ClusterAgencyCommunicationFailed

Will be raised if after various retries an agency operation could not be performed successfully.

§

ClusterDistributeShardsLikeReplicationFactor

Will be raised if intended replication factor does not match that of the prototype shard given in ditributeShardsLike parameter.

§

ClusterDistributeShardsLikeNumberOfShards

Will be raised if intended number of shards does not match that of the prototype shard given in ditributeShardsLike parameter.

§

QueryKilled

Will be raised when a running query is killed by an explicit admin command.

§

QueryParse

Will be raised when query is parsed and is found to be syntactically invalid.

§

QueryEmpty

Will be raised when an empty query is specified.

§

QueryScript

Will be raised when a runtime error is caused by the query.

§

QueryNumberOutOfRange

Will be raised when a number is outside the expected range.

§

QueryVariableNameInvalid

Will be raised when an invalid variable name is used.

§

QueryVariableRedeclared

Will be raised when a variable gets re-assigned in a query.

§

QueryVariableNameUnknown

Will be raised when an unknown variable is used or the variable is undefined the context it is used.

§

QueryCollectionLockFailed

Will be raised when a read lock on the collection cannot be acquired.

§

QueryTooManyCollections

Will be raised when the number of collections in a query is beyond the allowed value.

§

QueryDocumentAttributeRedeclared

Will be raised when a document attribute is re-assigned.

§

QueryFunctionNameUnknown

Will be raised when an undefined function is called.

§

QueryFunctionArgumentNumberMismatch

Will be raised when the number of arguments used in a function call does not match the expected number of arguments for the function.

§

QueryFunctionArgumentTypeMismatch

Will be raised when the type of an argument used in a function call does not match the expected argument type.

§

QueryInvalidRegex

Will be raised when an invalid regex argument value is used in a call to a function that expects a regex.

§

QueryBindParametersInvalid

Will be raised when the structure of bind parameters passed has an unexpected format.

§

QueryBindParameterMissing

Will be raised when a bind parameter was declared in the query but the query is being executed with no value for that parameter.

§

QueryBindParameterUndeclared

Will be raised when a value gets specified for an undeclared bind parameter.

§

QueryBindParameterType

Will be raised when a bind parameter has an invalid value or type.

§

QueryInvalidLogicalValue

Will be raised when a non-boolean value is used in a logical operation.

§

QueryInvalidArithmeticValue

Will be raised when a non-numeric value is used in an arithmetic operation.

§

QueryDivisionByZero

Will be raised when there is an attempt to divide by zero.

§

QueryArrayExpected

Will be raised when a non-array operand is used for an operation that expects an array argument operand.

§

QueryFailCalled

Will be raised when the function FAIL() is called from inside a query.

§

QueryGeoIndexMissing

Will be raised when a geo restriction was specified but no suitable geo index is found to resolve it.

§

QueryFulltextIndexMissing

Will be raised when a fulltext query is performed on a collection without a suitable fulltext index.

§

QueryInvalidDateValue

Will be raised when a value cannot be converted to a date.

§

QueryMultiModify

Will be raised when an AQL query contains more than one data-modifying operation.

§

QueryInvalidAggregateExpression

Will be raised when an AQL query contains an invalid aggregate expression.

§

QueryCompileTimeOptions

Will be raised when an AQL data-modification query contains options that cannot be figured out at query compile time.

§

QueryExceptionOptions

Will be raised when an AQL data-modification query contains an invalid options specification.

§

QueryCollectionUsedInExpression

Will be raised when a collection is used as an operand in an AQL expression.

§

QueryDisallowedDynamicCall

Will be raised when a dynamic function call is made to a function that cannot be called dynamically.

§

QueryAccessAfterModification

Will be raised when collection data are accessed after a data-modification operation.

§

QueryFunctionInvalidName

Will be raised when a user function with an invalid name is registered.

§

QueryFunctionInvalidCode

Will be raised when a user function is registered with invalid code.

§

QueryFunctionNotFound

Will be raised when a user function is accessed but not found.

§

QueryFunctionRuntimeError

Will be raised when a user function throws a runtime exception.

§

QueryBadJsonPlan

Will be raised when an HTTP API for a query got an invalid JSON object.

§

QueryNotFound

Will be raised when an Id of a query is not found by the HTTP API.

§

QueryInUse

Will be raised when an Id of a query is found by the HTTP API but the query is in use.

§

CursorNotFound

Will be raised when a cursor is requested via its id but a cursor with that id cannot be found.

§

CursorBusy

Will be raised when a cursor is requested via its id but a concurrent request is still using the cursor.

§

TransactionInternal

Will be raised when a wrong usage of transactions is detected. this is an internal error and indicates a bug in ArangoDB.

§

TransactionNested

Will be raised when transactions are nested.

§

TransactionUnregisteredCollection

Will be raised when a collection is used in the middle of a transaction but was not registered at transaction start.

§

TransactionDisallowedOperation

Will be raised when a disallowed operation is carried out in a transaction.

§

TransactionAborted

Will be raised when a transaction was aborted.

§

UserInvalidName

Will be raised when an invalid user name is used.

§

UserInvalidPassword

Will be raised when an invalid password is used.

§

UserDuplicate

Will be raised when a user name already exists.

§

UserNotFound

Will be raised when a user name is updated that does not exist.

§

UserChangePassword

Will be raised when the user must change his password.

§

ServiceInvalidName

Will be raised when an invalid service name is specified.

§

ServiceInvalidMount

Will be raised when an invalid mount is specified.

§

ServiceDownloadFailed

Will be raised when a service download from the central repository failed.

§

ServiceUploadFailed

Will be raised when a service upload from the client to the ArangoDB server failed.

§

LdapCannotInit

can not init a LDAP connection

§

LdapCannotSetOption

can not set a LDAP option

§

LdapCannotBind

can not bind to a LDAP server

§

LdapCannotUnbind

can not unbind from a LDAP server

§

LdapCannotSearch

can not search the LDAP server

§

LdapCannotStartTls

can not star a TLS LDAP session

§

LdapFoundNoObjects

LDAP didn’t found any objects with the specified search query

§

LdapNotOneUserFound

LDAP found zero ore more than one user

§

LdapUserNotIdentified

LDAP found a user, but its not the desired one

§

LdapInvalidMode

cant distinguish a valid mode for provided ldap configuration

§

TaskInvalidId

Will be raised when a task is created with an invalid id.

§

TaskDuplicateId

Will be raised when a task id is created with a duplicate id.

§

TaskNotFound

Will be raised when a task with the specified id could not be found.

§

GraphInvalidGraph

Will be raised when an invalid name is passed to the server.

§

GraphCouldNotCreateGraph

Will be raised when an invalid name, vertices or edges is passed to the server.

§

GraphInvalidVertex

Will be raised when an invalid vertex id is passed to the server.

§

GraphCouldNotCreateVertex

Will be raised when the vertex could not be created.

§

GraphCouldNotChangeVertex

Will be raised when the vertex could not be changed.

§

GraphInvalidEdge

Will be raised when an invalid edge id is passed to the server.

§

GraphCouldNotCreateEdge

Will be raised when the edge could not be created.

§

GraphCouldNotChangeEdge

Will be raised when the edge could not be changed.

§

GraphTooManyIterations

Will be raised when too many iterations are done in a graph traversal.

§

GraphInvalidFilterResult

Will be raised when an invalid filter result is returned in a graph traversal.

§

GraphCollectionMultiUse

An edge collection may only be used once in one edge definition of a graph.

§

GraphCollectionUseInMultiGraphs

Is already used by another graph in a different edge definition.

§

GraphCreateMissingName

A graph name is required to create a graph.

§

GraphCreateMalformedEdgeDefinition

The edge definition is malformed. It has to be an array of objects.

§

GraphNotFound

A graph with this name could not be found.

§

GraphDuplicate

A graph with this name already exists.

§

GraphVertexColDoesNotExist

The specified vertex collection does not exist or is not part of the graph.

§

GraphWrongCollectionTypeVertex

The collection is not a vertex collection.

§

GraphNotInOrphanCollection

Vertex collection not in orphan collection of the graph.

§

GraphCollectionUsedInEdgeDef

The collection is already used in an edge definition of the graph.

§

GraphEdgeCollectionNotUsed

The edge collection is not used in any edge definition of the graph.

§

GraphNotAnArangoCollection

The collection is not an ArangoCollection.

§

GraphNoGraphCollection

Collection _graphs does not exist.

§

GraphInvalidExampleArrayObjectString

Invalid example type. Has to be String, Array or Object.

§

GraphInvalidExampleArrayObject

Invalid example type. Has to be Array or Object.

§

GraphInvalidNumberOfArguments

Invalid number of arguments. Expected:

§

GraphInvalidParameter

Invalid parameter type.

§

GraphInvalidId

Invalid id

§

GraphCollectionUsedInOrphans

The collection is already used in the orphans of the graph.

§

GraphEdgeColDoesNotExist

The specified edge collection does not exist or is not part of the graph.

§

GraphEmpty

The requested graph has no edge collections.

§

SessionUnknown

Will be raised when an invalid/unknown session id is passed to the server.

§

SessionExpired

Will be raised when a session is expired.

§

SimpleClientUnknownError

This error should not happen.

§

SimpleClientCouldNotConnect

Will be raised when the client could not connect to the server.

§

SimpleClientCouldNotWrite

Will be raised when the client could not write data.

§

SimpleClientCouldNotRead

Will be raised when the client could not read data.

§

CommunicatorRequestAborted

Request was aborted.

§

CommunicatorDisabled

Communication was disabled.

§

MalformedManifestFile

The service manifest file is not well-formed JSON.

§

InvalidServiceManifest

The service manifest contains invalid values.

§

ServiceFilesMissing

The service folder or bundle does not exist on this server.

§

ServiceFilesOutdated

The local service bundle does not match the checksum in the database.

§

InvalidFoxxOptions

The service options contain invalid values.

§

InvalidMountpoint

The service mountpath contains invalid characters.

§

ServiceNotFound

No service found at the given mountpath.

§

ServiceNeedsConfiguration

The service is missing configuration or dependencies.

§

ServiceMountpointConflict

A service already exists at the given mountpath.

§

ServiceManifestNotFound

The service directory does not contain a manifest file.

§

ServiceOptionsMalformed

The service options are not well-formed JSON.

§

ServiceSourceNotFound

The source path does not match a file or directory.

§

ServiceSourceError

The source path could not be resolved.

§

ServiceUnknownScript

The service does not have a script with this name.

§

ModuleNotFound

The module path could not be resolved.

§

ModuleSyntaxError

The module could not be parsed because of a syntax error.

§

ModuleFailure

Failed to invoke the module in its context.

§

NoSmartCollection

The requested collection needs to be smart, but it ain’t

§

NoSmartGraphAttribute

The given document does not have the smart graph attribute set.

§

CannotDropSmartCollection

This smart collection cannot be dropped, it dictates sharding in the graph.

§

KeyMustBePrefixedWithSmartGraphAttribute

In a smart vertex collection _key must be prefixed with the value of the smart graph attribute.

§

IllegalSmartGraphAttribute

The given smartGraph attribute is illegal and connot be used for sharding. All system attributes are forbidden.

§

AgencyInquirySyntax

Inquiry handles a list of string clientIds: [,…].

§

AgencyInformMustBeObject

The inform message in the agency must be an object.

§

AgencyInformMustContainTerm

The inform message in the agency must contain a uint parameter ‘term’.

§

AgencyInformMustContainId

The inform message in the agency must contain a string parameter ‘id’.

§

AgencyInformMustContainActive

The inform message in the agency must contain an array ‘active’.

§

AgencyInformMustContainPool

The inform message in the agency must contain an object ‘pool’.

§

AgencyInformMustContainMinPing

The inform message in the agency must contain an object ‘min ping’.

§

AgencyInformMustContainMaxPing

The inform message in the agency must contain an object ‘max ping’.

§

AgencyInformMustContainTimeoutMult

The inform message in the agency must contain an object ‘timeoutMult’.

§

AgencyInquireClientIdMustBeString

Inquiry by clientId failed

§

AgencyCannotRebuildDbs

Will be raised if the readDB or the spearHead cannot be rebuilt from the replicated log.

§

SupervisionGeneralFailure

General supervision failure.

§

DispatcherIsStopping

Will be returned if a shutdown is in progress.

§

QueueUnknown

Will be returned if a queue with this name does not exist.

§

QueueFull

Will be returned if a queue with this name is full.

§

UnknownError

ArangoDB returned an error code that has not been added to this enum yet.

Implementations§

Source§

impl ErrorCode

Source

pub fn from_u16(value: u16) -> Self

Returns the ErrorCode variant that is assigned to the given u16 value.

Source

pub fn as_u16(&self) -> u16

Returns an integer that is assigned to the enum variant of this error code.

Source

pub fn description(&self) -> &str

Returns a short description of the error code. It describes the meaning of the error code and when it can occur.

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ErrorCode

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ErrorCode

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &ErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ErrorCode

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for ErrorCode

Source§

impl Eq for ErrorCode

Source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,