Indicates an error that was unexpected but recoverable.
Indicates an Error that cannot be recovered from.
Indicates an error that was expected and recoverable.
Creates a new Error instance with the optional key-value pairs mixed in. The returned Error will have the default severity of ERROR, which indicates it is unexpected but also recoverable.
The error message.
Optional data to assign to the Error.
A new Error instance.
Returns an object literal containing the optionally specified key-value pairs along with a severity of FATAL, indicating an Error that cannot be recovered from.
Optional data to assign.
An object map of the optionally provided key-value pairs along with a severity of FATAL.
Returns an object literal containing the optionally specified key-value pairs along with a severity of IGNORE, indicating an Error that was expected and can be safely ignored.
Optional data to assign.
An object map of the optionally provided key-value pairs along with a severity of IGNORE.
Mixes properties into an Error instance to assist with triage and debugging.
NOTE: This method expects 2 arguments (an Error and an object literal) and is curried. That means you can provide the arguments at any time. They can also be provided in any order. These are all the same:
rethrow(e, { params });
rethrow({ params }, e);
rethrow(e)({ params });
rethrow({ params })(e);
Mixes properties into an Error instance to assist with triage and debugging.
NOTE: This method expects 2 arguments (an Error and an object literal) and is curried. That means you can provide the arguments at any time. They can also be provided in any order. These are all the same:
rethrow(e, { params });
rethrow({ params }, e);
rethrow(e)({ params });
rethrow({ params })(e);
Mixes properties into an Error instance to assist with triage and debugging.
NOTE: This method expects 2 arguments (an Error and an object literal) and is curried. That means you can provide the arguments at any time. They can also be provided in any order. These are all the same:
rethrow(e, { params });
rethrow({ params }, e);
rethrow(e)({ params });
rethrow({ params })(e);
Mixes properties into an Error instance to assist with triage and debugging.
NOTE: This method expects 2 arguments (an Error and an object literal) and is curried. That means you can provide the arguments at any time. They can also be provided in any order. These are all the same:
rethrow(e, { params });
rethrow({ params }, e);
rethrow(e)({ params });
rethrow({ params })(e);
Provide utilities for creating application errors with certain severities and optional custom information.