error-serializer
Advanced tools
Changelog
5.0.0
normalize
option was renamed to loose
. Its value
has been inverted: normalize: false
is now loose: true
.loose
option is now false
.
serialize()
is not an error instance, it is now
normalized to one, unless loose: true
is usedparse()
is not an error plain object, it is now
normalized to one, unless loose: true
is usedChangelog
4.1.0
error
is now passed to afterSerialize()
errorObject
is now passed to afterParse()
Changelog
4.0.0
classes
option was
defined, the constructor
is not called anymore unless
error.constructorArgs
was setbeforeSerialize()
,
afterSerialize()
,
beforeParse()
and
afterParse()
to customize
the serialization and parsing of each error