Methods
error_context(in_error, context) → {Error}
Adds additional contextual variables to an error and modifies its stacktrace and toString output to include that context.
Parameters:
Name | Type | Description |
---|---|---|
in_error |
Error | |
context |
object |
Returns:
- Type
- Error