java.lang.Object
org.mule.runtime.extension.internal.util.ExtensionErrorUtils

public final class ExtensionErrorUtils extends Object
Utilities for handling extension errors.

This class IS NOT part of the API. To be used by the Mule Runtime only

Since:
1.5.0
  • Method Details

    • getValidationError

      public static Optional<org.mule.runtime.api.meta.model.error.ErrorModel> getValidationError(Collection<org.mule.runtime.api.meta.model.error.ErrorModel> errors)
      Traverses the errors collection and returns the first item which represents a MuleErrors.VALIDATION error
      Parameters:
      errors - a set of ErrorModel
      Returns:
      an optional ErrorModel