getErrorHandler method

  1. @override
dynamic getErrorHandler(
  1. dynamic error
)
override

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
getErrorHandler(error) => _errorMapping[error];