You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
use dockers for tests, use npm workspaces, add rejson & redisearch modules, fix some bugs
This commit is contained in:
35
packages/client/lib/errors.ts
Normal file
35
packages/client/lib/errors.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export class AbortError extends Error {
|
||||
constructor() {
|
||||
super('The command was aborted');
|
||||
}
|
||||
}
|
||||
|
||||
export class WatchError extends Error {
|
||||
constructor() {
|
||||
super('One (or more) of the watched keys has been changed');
|
||||
}
|
||||
}
|
||||
|
||||
export class ConnectionTimeoutError extends Error {
|
||||
constructor() {
|
||||
super('Connection timeout');
|
||||
}
|
||||
}
|
||||
|
||||
export class ClientClosedError extends Error {
|
||||
constructor() {
|
||||
super('The client is closed');
|
||||
}
|
||||
}
|
||||
|
||||
export class DisconnectsClientError extends Error {
|
||||
constructor() {
|
||||
super('Disconnects client');
|
||||
}
|
||||
}
|
||||
|
||||
export class SocketClosedUnexpectedlyError extends Error {
|
||||
constructor() {
|
||||
super('Socket closed unexpectedly');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user