public class ErrorTypeRepositoryDTO extends Object implements org.mule.runtime.api.exception.ErrorTypeRepository, PostProcessingEnabler.PostProcessable
ErrorTypeRepository. It is designed to behave as any possible serialized instance,
whether it is a default or a composite one.| Constructor and Description |
|---|
ErrorTypeRepositoryDTO(org.mule.runtime.api.message.ErrorType anyErrorType,
org.mule.runtime.api.message.ErrorType sourceErrorType,
org.mule.runtime.api.message.ErrorType sourceResponseErrorType,
org.mule.runtime.api.message.ErrorType criticalErrorType,
Set<org.mule.runtime.api.message.ErrorType> errorTypes,
Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.ErrorType |
addErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier,
org.mule.runtime.api.message.ErrorType errorType) |
org.mule.runtime.api.message.ErrorType |
addInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier,
org.mule.runtime.api.message.ErrorType errorType) |
protected Optional<org.mule.runtime.api.message.ErrorType> |
doLookupErrorType(Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> errorTypes,
org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
org.mule.runtime.api.message.ErrorType |
getAnyErrorType() |
org.mule.runtime.api.message.ErrorType |
getCriticalErrorType() |
Collection<String> |
getErrorNamespaces() |
Optional<org.mule.runtime.api.message.ErrorType> |
getErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
Set<org.mule.runtime.api.message.ErrorType> |
getErrorTypes() |
List<ErrorTypeHierarchyItemDTO> |
getHierarchy() |
Set<org.mule.runtime.api.message.ErrorType> |
getInternalErrorTypes() |
org.mule.runtime.api.message.ErrorType |
getSourceErrorType() |
org.mule.runtime.api.message.ErrorType |
getSourceResponseErrorType() |
protected void |
initErrorTypesCollections() |
protected Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> |
initializeErrorTypeSet(boolean internal) |
protected void |
initializeErrorTypeSetForChildrenRecursively(org.mule.runtime.api.message.ErrorType parentErrorType,
List<ErrorTypeHierarchyItemDTO> hierarchyItemChildren,
Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> types,
boolean internal) |
Optional<org.mule.runtime.api.message.ErrorType> |
lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
protected Stream<org.mule.runtime.api.message.ErrorType> |
nonRootErrorTypesStream(Set<org.mule.runtime.api.message.ErrorType> errorTypes,
Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes) |
void |
postProcess() |
protected Stream<org.mule.runtime.api.message.ErrorType> |
rootErrorTypesStream(Set<org.mule.runtime.api.message.ErrorType> errorTypes,
Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes) |
public ErrorTypeRepositoryDTO(org.mule.runtime.api.message.ErrorType anyErrorType,
org.mule.runtime.api.message.ErrorType sourceErrorType,
org.mule.runtime.api.message.ErrorType sourceResponseErrorType,
org.mule.runtime.api.message.ErrorType criticalErrorType,
Set<org.mule.runtime.api.message.ErrorType> errorTypes,
Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes)
public void postProcess()
postProcess in interface PostProcessingEnabler.PostProcessableprotected void initErrorTypesCollections()
protected Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> initializeErrorTypeSet(boolean internal)
protected void initializeErrorTypeSetForChildrenRecursively(org.mule.runtime.api.message.ErrorType parentErrorType,
List<ErrorTypeHierarchyItemDTO> hierarchyItemChildren,
Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> types,
boolean internal)
protected Stream<org.mule.runtime.api.message.ErrorType> nonRootErrorTypesStream(Set<org.mule.runtime.api.message.ErrorType> errorTypes, Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes)
protected Stream<org.mule.runtime.api.message.ErrorType> rootErrorTypesStream(Set<org.mule.runtime.api.message.ErrorType> errorTypes, Set<org.mule.runtime.api.message.ErrorType> internalErrorTypes)
public org.mule.runtime.api.message.ErrorType addErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier,
org.mule.runtime.api.message.ErrorType errorType)
addErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic org.mule.runtime.api.message.ErrorType addInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier,
org.mule.runtime.api.message.ErrorType errorType)
addInternalErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic Optional<org.mule.runtime.api.message.ErrorType> lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
lookupErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositoryprotected Optional<org.mule.runtime.api.message.ErrorType> doLookupErrorType(Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> errorTypes, org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
public Optional<org.mule.runtime.api.message.ErrorType> getErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
getErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic Collection<String> getErrorNamespaces()
getErrorNamespaces in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic org.mule.runtime.api.message.ErrorType getAnyErrorType()
getAnyErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic org.mule.runtime.api.message.ErrorType getSourceErrorType()
getSourceErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic org.mule.runtime.api.message.ErrorType getSourceResponseErrorType()
getSourceResponseErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic org.mule.runtime.api.message.ErrorType getCriticalErrorType()
getCriticalErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic Set<org.mule.runtime.api.message.ErrorType> getErrorTypes()
getErrorTypes in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic Set<org.mule.runtime.api.message.ErrorType> getInternalErrorTypes()
getInternalErrorTypes in interface org.mule.runtime.api.exception.ErrorTypeRepositorypublic List<ErrorTypeHierarchyItemDTO> getHierarchy()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.