js-util

Home > rc-js-util > NestableError > getRootCauseImpl

NestableError.getRootCauseImpl() method

This should only be called by library extensions, not user code.

Signature:

protected static getRootCauseImpl<TError extends NestableError<TLocalization>, TLocalization>(error: unknown, isLocalization: (message: unknown) => message is TLocalization, createNestableError: (error: unknown) => TError): TError;

Parameters

Parameter Type Description
error unknown  
isLocalization (message: unknown) => message is TLocalization  
createNestableError (error: unknown) => TError  

Returns:

TError