Skip to main content

Function: isExpectedError()

isExpectedError(error): error is ExpectedErrorLike

Defined in: index.ts:151

Whether error is expected — handled, and to be kept out of error tracking. Matched by the expected marker, so it holds across bundle boundaries and for errors that opt in without extending ExpectedError.

Parameters​

ParameterType
errorunknown

Returns​

error is ExpectedErrorLike