1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/client/lib/errors.ts
2021-12-30 18:32:48 -05:00

48 lines
976 B
TypeScript

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');
}
}
export class AuthError extends Error {
constructor(message: string) {
super(message);
}
}
export class RootNodesUnavailableError extends Error {
constructor() {
super('All the root nodes are unavailable');
}
}