hypercore-errors

Hypercore errors

Apache-2.0 7 个版本
安装
npm install hypercore-errors
yarn add hypercore-errors
pnpm add hypercore-errors
bun add hypercore-errors
README

hypercore-errors

Hypercore errors

npm i hypercore-errors

Usage

const { BLOCK_NOT_AVAILABLE } = require('hypercore-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

版本列表
1.5.0 2025-08-20
1.4.0 2024-12-03
1.3.0 2024-08-30
1.2.0 2024-03-01
1.1.1 2024-01-22
1.1.0 2023-08-23
1.0.0 2023-07-26