arangodb-error-codes
v1.1.11
Published
Error codes for ArangoDB
Downloads
153
Maintainers
Readme
ArangoDB error codes
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)));