onError method
Called when an exception is thrown.
Implementation
@override
Future<InterceptorResult<RhttpException>> onError(
RhttpException exception) async {
return await _onError?.call(exception) ?? Interceptor.next(exception);
}
Called when an exception is thrown.
@override
Future<InterceptorResult<RhttpException>> onError(
RhttpException exception) async {
return await _onError?.call(exception) ?? Interceptor.next(exception);
}