Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ArangoError

Represents an error returned by ArangoDB.

Hierarchy

  • ExtendableError
    • ArangoError

Index

Properties

code

code: number

HTTP status code included in the server error response object.

errorNum

errorNum: number

ArangoDB error code.

See ArangoDB error documentation.

message

message: string

name

name: string = "ArangoError"

response

response: any

Server response object.

Optional stack

stack: string

Static Optional prepareStackTrace

prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Accessors

isArangoError

  • get isArangoError(): true
  • internal

    Indicates that this object represents an ArangoDB error.

    Returns true

Methods

toJSON

  • toJSON(): { code: number; error: boolean; errorMessage: string; errorNum: number }
  • Returns { code: number; error: boolean; errorMessage: string; errorNum: number }

    • code: number
    • error: boolean
    • errorMessage: string
    • errorNum: number

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc