Error classes used in Valkey clients and parsers (e.g. valkey-parser).
This is a Valkey-native port of redis-errors — same classes and behavior, with no Redis naming.
npm install valkey-errorsconst { ValkeyError, ReplyError, ParserError, AbortError, InterruptError } = require('valkey-errors')
throw new ReplyError('ERR unknown command')| Class | Extends | Description |
|---|---|---|
ValkeyError |
Error |
Base class for all Valkey errors. |
ReplyError |
ValkeyError |
An error returned by the server (RESP - reply). |
ParserError |
ValkeyError |
A protocol parsing error (carries buffer/offset). |
AbortError |
ValkeyError |
A command was aborted. |
InterruptError |
AbortError |
A command was aborted due to an interrupt. |
MIT — a fork of redis-errors (© 2017 Ruben Bridgewater).