Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

valkey-errors

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.

Install

npm install valkey-errors

Usage

const { ValkeyError, ReplyError, ParserError, AbortError, InterruptError } = require('valkey-errors')

throw new ReplyError('ERR unknown command')

Error classes

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.

License

MIT — a fork of redis-errors (© 2017 Ruben Bridgewater).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages