Normalizes an error -it assumes an instance of Error is passed. Guarantees the error will have a name, message, and stack properties.
Error
name
message
stack
Optional
Normalizes an error -it assumes an instance of
Error
is passed. Guarantees the error will have aname
,message
, andstack
properties.