CustomError
Index
Interfaces
Type Aliases
Interfaces
Module
readonlycreate
Return a new CustomError
readonlyerrorName
The model name constant. Can be useful for switch
/ case
statements.
readonlyhasInstance
Predicate that returns true
when anyValue
is a Model
The implementation compares anyValue.name === Module.errorName
Type Aliases
Parameters
Extract all parameters to create a new CustomError
Type parameters
- Model: object
ParametersProperties
Extract all properties passed to constructor
Type parameters
- Model: object
Return a new
CustomError
initial properties