You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
#2666 for v5
This commit is contained in:
@@ -69,3 +69,14 @@ export class SimpleError extends ErrorReply {}
|
||||
export class BlobError extends ErrorReply {}
|
||||
|
||||
export class TimeoutError extends Error {}
|
||||
|
||||
export class MultiErrorReply extends ErrorReply {
|
||||
replies: Array<ErrorReply>;
|
||||
errorIndexes: Array<number>;
|
||||
|
||||
constructor(replies: Array<ErrorReply>, errorIndexes: Array<number>) {
|
||||
super(`${errorIndexes.length} commands failed, see .replies and .errorIndexes for more information`);
|
||||
this.replies = replies;
|
||||
this.errorIndexes = errorIndexes;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user