arangodb-error-codes

1.1.11 • 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)));

Package Sidebar

Install

npm i arangodb-error-codes

Weekly Downloads

72

Version

1.1.11

License

MIT

Unpacked Size

67.6 kB

Total Files

11

Last publish

Collaborators

  • oprogramador