haikusw / errors

Error codes for levelup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

level-errors

Error module for levelup

level badge Build Status dependencies JavaScript Style Guide npm

API

.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.

Publishers

License & copyright

Copyright (c) 2012-2017 LevelUP contributors.

LevelUP is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

About

Error codes for levelup

License:Other


Languages

Language:JavaScript 100.0%