public class ErrorTypeRepositoryBuildingUtils extends Object
ExtensionModels and ArtifactAsts in order to properly populate an
ErrorTypeRepository for a given artifact.| Modifier and Type | Field and Description |
|---|---|
static org.mule.runtime.api.component.ComponentIdentifier |
CONNECTIVITY |
static String |
CONNECTIVITY_ERROR_IDENTIFIER |
static String |
CORE_ERROR_NS |
static String |
ERROR_TYPE_PARAM |
static String |
RAISE_ERROR |
static org.mule.runtime.api.component.ComponentIdentifier |
RAISE_ERROR_IDENTIFIER |
static org.mule.runtime.api.component.ComponentIdentifier |
RETRY_EXHAUSTED |
static String |
RETRY_EXHAUSTED_ERROR_IDENTIFIER |
| Constructor and Description |
|---|
ErrorTypeRepositoryBuildingUtils() |
| Modifier and Type | Method and Description |
|---|---|
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. |
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. |
public static final String CORE_ERROR_NS
public static final String RETRY_EXHAUSTED_ERROR_IDENTIFIER
public static final String CONNECTIVITY_ERROR_IDENTIFIER
public static final String RAISE_ERROR
public static final String ERROR_TYPE_PARAM
public static final org.mule.runtime.api.component.ComponentIdentifier RETRY_EXHAUSTED
public static final org.mule.runtime.api.component.ComponentIdentifier CONNECTIVITY
public static final org.mule.runtime.api.component.ComponentIdentifier RAISE_ERROR_IDENTIFIER
public static void addErrorsFromExtensions(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionModels, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository)
errorTypeRepository with the errors declared in the provided muleErrorTypeRepository.extensionModels - the extension models to get the error types from.errorTypeRepository - the repository to populatepublic static void addErrorsFromArtifact(ArtifactAst artifact, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository)
errorTypeRepository with the errors declared in the components that may declare new errors.artifact - the AST to navigate to detect the declared error typeserrorTypeRepository - the repository to populateCopyright © 2022 MuleSoft, Inc.. All rights reserved.