Wondering what’s next for npm?Check out our public roadmap! »

    arangodb-error-codes

    1.1.2 • Public • Published

    ArangoDB error codes

    MIT License Build Status

    NPM status

    ArangoDB 3 error codes according to the official documentation.

    installation

    npm install --save arangodb-error-codes

    usage

    const arangoErrorCodes = require('arangodb-error-codes');
    
    db.collection(collectionName).firstExample({ id })
      .catch(error => (error.errorNum === arangoErrorCodes.ERROR_HTTP_NOT_FOUND ? Promise.resolve() : Promise.reject(error)));

    Install

    npm i arangodb-error-codes

    DownloadsWeekly Downloads

    189

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    67.7 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar