Creates new error
Code of the error
Context assicated with an error
Default message if user does not provide one
Message that user passed into error
Array of child errors passed to this error
Unique error id
Error message
Error name
Gets user formatted message.
Error message formatting method
Converts error to JSON
Defines error class with predefined context. This allows to reuse error context.
Note: this is usually used by factory to define group of errors with some context.
Generated using TypeDoc
BaseError
BaseError
is base class for all other errors. It extendsError
class with additional functionality.