1.0.1 • Published 4 months ago

@omegajs/errors v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 months ago

@omegajs/errors

Module for logging oScroll-derived errors.

Install Via L1FE's NPM

npm config set registry https://npm.l1fe.tech
npm install @omegajs/errors

Install Via L1FE's Git Repository

git clone https://lab.l1fe.tech/omega/errors.git
cd errors
npm install

Usage

const { BLOCK_NOT_AVAILABLE } = require('@omegajs/errors')

throw BLOCK_NOT_AVAILABLE()

List

  • BAD_ARGUMENT
  • STORAGE_EMPTY
  • STORAGE_CONFLICT
  • INVALID_SIGNATURE
  • INVALID_CAPABILITY
  • INVALID_CHECKSUM
  • INVALID_OPERATION
  • INVALID_PROOF
  • BLOCK_NOT_AVAILABLE
  • SNAPSHOT_NOT_AVAILABLE
  • REQUEST_CANCELLED
  • REQUEST_TIMEOUT
  • SESSION_NOT_WRITABLE
  • SESSION_CLOSED
  • BATCH_UNFLUSHED
  • BATCH_ALREADY_EXISTS
  • BATCH_ALREADY_FLUSHED
  • OPLOG_CORRUPT
  • OPLOG_HEADER_OVERFLOW
  • INVALID_OPLOG_VERSION
  • WRITE_FAILED

License

Apache-2.0