Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / normalizeError

Function: normalizeError()

normalizeError(err): Error

Defined in: projects/libraries/streamix/src/lib/utils/helpers.ts:83

Safely normalizes any thrown/rejected value to an Error instance. Preserves real Error instances (and their stack traces); otherwise wraps primitives and objects in new Error(String(err)).

Parameters

err

any

Returns

Error

Released under the GNU AGPL v3 or later.