1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
# level-errors
> Error types for [levelup][levelup].
[![level badge][level-badge]](https://github.com/Level/awesome)
[](https://www.npmjs.com/package/level-errors)
[](https://www.npmjs.com/package/level-errors)
[](https://travis-ci.org/Level/errors)
[](https://coveralls.io/github/Level/errors)
[](https://standardjs.com)
[](https://www.npmjs.com/package/level-errors)
[](#backers)
[](#sponsors)
## API
**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md).
### `.LevelUPError()`
Generic error base class.
### `.InitializationError()`
Error initializing the database, like when the database's location argument is missing.
### `.OpenError()`
Error opening the database.
### `.ReadError()`
Error reading from the database.
### `.WriteError()`
Error writing to the database.
### `.NotFoundError()`
Data not found error.
Has extra properties:
- `notFound`: `true`
- `status`: 404
### `.EncodingError()`
Error encoding data.
## Contributing
[`Level/errors`](https://github.com/Level/errors) is an **OPEN Open Source Project**. This means that:
> Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
See the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details.
## Donate
To sustain [`Level`](https://github.com/Level) and its activities, become a backer or sponsor on [Open Collective](https://opencollective.com/level). Your logo or avatar will be displayed on our 28+ [GitHub repositories](https://github.com/Level), [npm](https://www.npmjs.com/) packages and (soon) [our website](http://leveldb.org). 💖
### Backers
[](https://opencollective.com/level)
### Sponsors
[](https://opencollective.com/level)
## License
[MIT](LICENSE.md) © 2012-present [Contributors](CONTRIBUTORS.md).
[level-badge]: http://leveldb.org/img/badge.svg
[levelup]: https://github.com/Level/levelup
|