Options
All
  • Public
  • Public/Protected
  • All
Menu

Module error

import type { ArangoError, HttpError } from "arangojs/error";

The "error" module provides types and interfaces for TypeScript related to arangojs error handling.

Index

Functions

isArangoError

  • Indicates whether the given value represents an ArangoError.

    Parameters

    • error: any

      A value that might be an ArangoError.

    Returns error is ArangoError

isArangoErrorResponse

  • isArangoErrorResponse(body: any): boolean
  • Indicates whether the given value represents an ArangoDB error response.

    internal

    Parameters

    • body: any

    Returns boolean

isSystemError

  • Indicates whether the given value represents a Node.js SystemError.

    Parameters

    • err: any

    Returns err is SystemError

Generated using TypeDoc