Creates an err_object (new Error) with the given message. Puts it in
its data array. Also calls f_history and passes the err_object.
Methods
(inner) err(message) → {object}
Parameters:
Name | Type | Description |
---|---|---|
message |
string | Message to include in err_object |
Returns:
err_object
- Type
- object
Events
err
Error event. Emits err_object.
Type:
- object