runOnError static method
Implementation
static Future<UnifiedError> runOnError(
UnifiedError error,
List<UnifiedInterceptor> interceptors,
) async {
var current = error;
for (final interceptor in interceptors) {
current = await interceptor.onError(current);
}
return current;
}