Normalizes caught values into an Error instance.
Error
Caught values are typed as unknown, so non-Error values are wrapped in a new Error using their string representation.
unknown
Normalizes caught values into an
Errorinstance.Caught values are typed as
unknown, so non-Errorvalues are wrapped in a newErrorusing their string representation.