getErrorHandler method
Returns the error handler (RequestHandler) or a URI (String) based on the error thrown by a request handler.
You can override this method to detect the type of the error
and then return a handler for it. The handler can retrieve
the error via connect.errorDetail
.
Implementation
@override
Object? getErrorHandler(Object? error) => _errorMapping[error];