File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ var myParser = new Parser(options);
35
35
* ` setReturnBuffers(boolean) ` : (JSParser only) set the returnBuffers option on/off without resetting the parser
36
36
* ` setStringNumbers(boolean) ` : (JSParser only) set the stringNumbers option on/off without resetting the parser
37
37
38
+ ### Error classes
39
+
40
+ All errors returned by the parser are of the class ` ReplyError ` that is a sub class of ` RedisError ` .
41
+ Both types are exported by the parser.
42
+
38
43
### Example
39
44
40
45
``` js
Original file line number Diff line number Diff line change 5
5
- Added ` reset ` function to reset the parser to it's initial values
6
6
- Added ` setReturnBuffers ` function to reset the returnBuffers option (Only for the JSParser)
7
7
- Added ` setStringNumbers ` function to reset the stringNumbers option (Only for the JSParser)
8
+ - All Errors are now of sub classes of the new ` RedisError ` class. It is also exported.
8
9
9
10
Bugfixes
10
11
You can’t perform that action at this time.
0 commit comments