Class ErrorTypeRepositoryBuildingUtils
java.lang.Object
org.mule.runtime.ast.internal.error.ErrorTypeRepositoryBuildingUtils
Provides the functionality to navigate
ExtensionModels and ArtifactAsts in order to properly populate an
ErrorTypeRepository for a given artifact.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.mule.runtime.api.component.ComponentIdentifierstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.mule.runtime.api.component.ComponentIdentifierstatic final org.mule.runtime.api.component.ComponentIdentifierstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddErrorsFromArtifact(ArtifactAst artifact, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) Populates the providederrorTypeRepositorywith the errors declared in the components that may declare new errors.static voidaddErrorsFromExtensions(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionModels, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) Populates the providederrorTypeRepositorywith the errors declared in the providedmuleErrorTypeRepository.
-
Field Details
-
CORE_ERROR_NS
-
RETRY_EXHAUSTED_ERROR_IDENTIFIER
- See Also:
-
CONNECTIVITY_ERROR_IDENTIFIER
- See Also:
-
RAISE_ERROR
- See Also:
-
ERROR_TYPE_PARAM
- See Also:
-
RETRY_EXHAUSTED
public static final org.mule.runtime.api.component.ComponentIdentifier RETRY_EXHAUSTED -
CONNECTIVITY
public static final org.mule.runtime.api.component.ComponentIdentifier CONNECTIVITY -
RAISE_ERROR_IDENTIFIER
public static final org.mule.runtime.api.component.ComponentIdentifier RAISE_ERROR_IDENTIFIER
-
-
Constructor Details
-
ErrorTypeRepositoryBuildingUtils
public ErrorTypeRepositoryBuildingUtils()
-
-
Method Details
-
addErrorsFromExtensions
public static void addErrorsFromExtensions(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionModels, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) Populates the providederrorTypeRepositorywith the errors declared in the providedmuleErrorTypeRepository.- Parameters:
extensionModels- the extension models to get the error types from.errorTypeRepository- the repository to populate
-
addErrorsFromArtifact
public static void addErrorsFromArtifact(ArtifactAst artifact, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) Populates the providederrorTypeRepositorywith the errors declared in the components that may declare new errors.- Parameters:
artifact- the AST to navigate to detect the declared error typeserrorTypeRepository- the repository to populate
-