Show:
- Source:
Methods
(static) logError(error, topicopt)
...
Logs an error by notifying subscribers to the given mw.track() topic
(by default error.caught
) that an event has occurred.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
error |
Error | |||
topic |
string |
<optional> |
'error.caught' | Error topic. Conventionally in the form 'error.⧼component⧽' (where ⧼component⧽ identifies the code logging the error at a high level; e.g. an extension name). |
- Source: