js-util

Home > rc-js-util > NestableError

NestableError class

Composable error, useful for automatically generating user friendly localized error messages.

Signature:

export declare class NestableError<TLocalization> 

Constructors

Constructor Modifiers Description
(constructor)(message, causedBy, stringifyMessage)   Constructs a new instance of the NestableError class

Properties

Property Modifiers Type Description
causedBy   unknown  
message   TLocalization  
stack   string  

Methods

Method Modifiers Description
getRootCauseImpl(error, isLocalization, createNestableError) static This should only be called by library extensions, not user code.
isErrorImpl(errorCtor, isLocalization, error) static This should only be called by library extensions, not user code.
normalizeErrorImpl(error, isLocalization, createNestableError) static This should only be called by library extensions, not user code.
toString()