Skip to content

ReactNative SDK Reference / isErrorWithCause

Function: isErrorWithCause()

isErrorWithCause(error): error is ErrorWithCause

Checks if the given error is of type ErrorWithCause

Parameters

error: unknown

Any unknown object to validate

Returns

error is ErrorWithCause

true if the given error is of type ErrorWithCause