Class with logic for handling errors that are thrown at the run-level of the application.
Colloquially, these are errors thrown ourside the request-lifecycle that are not caught by a unit.
Get the error handler function.
Log the error to the logger.
Wrap the given base Error instance into an ErrorWithContext.