onError method
Called when an exception was occurred during the request.
Implementation
@override
void onError(DioException err, ErrorInterceptorHandler handler) {
if (accessory != null) {
for (MCRequestAccessory item in accessory!) {
item.requestDidStop(err: err, handlerErr: handler);
}
}
return super.onError(err, handler);
}