Class ExtensionErrorUtils
java.lang.Object
org.mule.runtime.extension.internal.util.ExtensionErrorUtils
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 Summary
Modifier and TypeMethodDescriptionstatic Optional<org.mule.runtime.api.meta.model.error.ErrorModel>getValidationError(Collection<org.mule.runtime.api.meta.model.error.ErrorModel> errors) Traverses theerrorscollection and returns the first item which represents aMuleErrors.VALIDATIONerror
-
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 theerrorscollection and returns the first item which represents aMuleErrors.VALIDATIONerror- Parameters:
errors- a set ofErrorModel- Returns:
- an optional
ErrorModel
-