Constructor
new ErrorHandler(options)
Creates an instance of ErrorHandler.
Name | Type | Description |
---|---|---|
options | ErrorHandlerOptions | Configuration options for the error handler. |
- Source
Methods
captureError(error, contextopt)
Captures an error, logs it, and optionally reports it to Sentry.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
error | Error | The error to handle. | ||
context | Object | <optional> | {} | Additional context or metadata related to the error. |
- Source
captureError(error, contextopt)
Captures an error, logs it, and optionally reports it to Sentry.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
error | Error | The error to handle. | ||
context | Object | <optional> | {} | Additional context or metadata related to the error. |
- Source