runOnError static method

Future<UnifiedError> runOnError(
  1. UnifiedError error,
  2. List<UnifiedInterceptor> interceptors
)

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;
}