handle method

FutureOr<Response> handle(
  1. Type exceptionType,
  2. ResponseException exception
)

Implementation

FutureOr<Response> handle(
    Type exceptionType, ResponseException exception) async {
  final handlerWithException2 = handlerWithException[exceptionType];
  if (handlerWithException2 != null) {
    return handlerWithException2(exception);
  } else {
    return defaultResponse;
  }
}