onError method
Called when an exception was occurred during the request.
Implementation
@override
void onError(DioError err, ErrorInterceptorHandler handler) async {
if (kIsDebug) {
if (saveErrorUseCase != null) {
await saveErrorUseCase!.execute(err);
}
}
handler.next(err);
super.onError(err, handler);
}