Home > rc-js-util > NestableError
Composable error, useful for automatically generating user friendly localized error messages.
Signature:
export declare class NestableError<TLocalization>
Constructor | Modifiers | Description |
---|---|---|
(constructor)(message, causedBy, stringifyMessage) | Constructs a new instance of the NestableError class |
Property | Modifiers | Type | Description |
---|---|---|---|
causedBy | unknown | ||
message | TLocalization | ||
stack | string |
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() |