js-util

Home > rc-js-util > NestableError > isErrorImpl

NestableError.isErrorImpl() method

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;

Parameters

Parameter Type Description
errorCtor new (…args: any[]) => TError  
isLocalization (message: unknown) => message is TLocalization  
error unknown  

Returns:

error is TError