A generic error handler that logs the error and calls a custom error handler if one is set.
A logger instance for interally logging the error.
The error that occurred.
Optional
Additional context about the error.
A generic error handler that logs the error and calls a custom error handler if one is set.