Class ErrorTypeRepositoryBuildingUtils

java.lang.Object
org.mule.runtime.ast.internal.error.ErrorTypeRepositoryBuildingUtils

public class ErrorTypeRepositoryBuildingUtils extends Object
Provides the functionality to navigate ExtensionModels and ArtifactAsts in order to properly populate an ErrorTypeRepository for a given artifact.
Since:
1.0
  • Field Details

    • CORE_ERROR_NS

      public static final String CORE_ERROR_NS
    • RETRY_EXHAUSTED_ERROR_IDENTIFIER

      public static final String RETRY_EXHAUSTED_ERROR_IDENTIFIER
      See Also:
    • CONNECTIVITY_ERROR_IDENTIFIER

      public static final String CONNECTIVITY_ERROR_IDENTIFIER
      See Also:
    • RAISE_ERROR

      public static final String RAISE_ERROR
      See Also:
    • ERROR_TYPE_PARAM

      public static final String 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 provided errorTypeRepository with the errors declared in the provided muleErrorTypeRepository.
      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 provided errorTypeRepository with the errors declared in the components that may declare new errors.
      Parameters:
      artifact - the AST to navigate to detect the declared error types
      errorTypeRepository - the repository to populate