File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -97,19 +97,21 @@ Converts errors to plain objects that are
9797([ or YAML] ( https://github.com/ehmicky/error-serializer#custom-serializationparsing ) ,
9898etc.). This is
9999[ automatically called] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#tojson_behavior )
100- by ` JSON.stringify() ` . All error properties
100+ by ` JSON.stringify() ` .
101+
102+ All error properties
101103[ are kept] ( https://github.com/ehmicky/error-serializer#additional-error-properties ) .
102104[ Plugin options] ( https://github.com/ehmicky/modern-errors#plugin-options ) are
103105also preserved.
104106
105107## BaseError.parse(value)
106108
107109If ` value ` is an error plain object, converts it to an identical error instance.
108- The original error class is preserved.
109-
110110Otherwise, [ recurse] ( #deep-serializationparsing ) over ` value ` and parse any
111111nested error plain object.
112112
113+ The original error classes are preserved.
114+
113115# Usage
114116
115117## JSON safety
You can’t perform that action at this time.
0 commit comments