Home > rc-js-util > NestableError > isErrorImpl
This should only be called by library extensions, not user code.
Signature:
protected static isErrorImpl<TError extends NestableError<TLocalization>, TLocalization>(errorCtor: new (...args: any[]) => TError, isLocalization: (message: unknown) => message is TLocalization, error: unknown): error is TError;
Parameter | Type | Description |
---|---|---|
errorCtor | new (…args: any[]) => TError | |
isLocalization | (message: unknown) => message is TLocalization | |
error | unknown |
Returns:
error is TError