Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oprogramador/arangodb-error-codes
Error codes for ArangoDB
https://github.com/oprogramador/arangodb-error-codes
Last synced: 26 days ago
JSON representation
Error codes for ArangoDB
- Host: GitHub
- URL: https://github.com/oprogramador/arangodb-error-codes
- Owner: oprogramador
- Archived: true
- Created: 2016-11-09T23:27:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T21:07:10.000Z (over 1 year ago)
- Last Synced: 2024-11-11T20:48:17.146Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 300 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-arangodb - arangodb-error-codes - ArangoDB 3 error codes according to the official documentation. (Uncategorized / Uncategorized)
README
# ArangoDB error codes
[![MIT License](https://img.shields.io/badge/license-mit-green.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.com/oprogramador/arangodb-error-codes.svg?branch=master)](https://travis-ci.com/oprogramador/arangodb-error-codes)[![NPM status](https://nodei.co/npm/arangodb-error-codes.png?downloads=true&stars=true)](https://npmjs.org/package/arangodb-error-codes)
ArangoDB 3 error codes according to the [official documentation](https://docs.arangodb.com/3.0.10/Manual/Appendix/ErrorCodes.html).
## installation
`npm install --save arangodb-error-codes`
## usage
```js
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)));
```