Constructor
new Err(plugin, msg, …argsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
plugin | Object | Plugin instance | |
msg | string | Error message | |
args | any | <optional> <repeatable> | Variables to interpolate with error message. Payload object can be pushed as the very last argument |
- Source
Methods
fatal()
Print error object on screen and terminate app process
- Source
formatErrorDetails(value) → {Object}
Pretty format error details
Parameters:
Name | Type | Description |
---|---|---|
value | Object | Value to format |
- Source
Returns:
- Type:
- Object
write() → {Object}
Create the error object
- Source
Returns:
Error object
- Type:
- Object