java.lang.Object
org.mule.runtime.ast.internal.serialization.dto.ErrorTypeRepositoryDTO
All Implemented Interfaces:
org.mule.runtime.api.exception.ErrorTypeRepository

public class ErrorTypeRepositoryDTO extends Object implements org.mule.runtime.api.exception.ErrorTypeRepository
This is a serializable version of an ErrorTypeRepository. It is designed to behave as any possible serialized instance, whether it is a default or a composite one.
  • Constructor Details

    • ErrorTypeRepositoryDTO

      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)
  • Method Details

    • initErrorTypesCollections

      public void initErrorTypesCollections()
    • initializeErrorTypeSet

      protected Map<org.mule.runtime.api.component.ComponentIdentifier,org.mule.runtime.api.message.ErrorType> initializeErrorTypeSet(boolean internal)
    • initializeErrorTypeSetForChildrenRecursively

      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)
    • nonRootErrorTypesStream

      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)
    • rootErrorTypesStream

      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)
    • addErrorType

      public org.mule.runtime.api.message.ErrorType addErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier, org.mule.runtime.api.message.ErrorType errorType)
      Specified by:
      addErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • addInternalErrorType

      public org.mule.runtime.api.message.ErrorType addInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier, org.mule.runtime.api.message.ErrorType errorType)
      Specified by:
      addInternalErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • lookupErrorType

      public Optional<org.mule.runtime.api.message.ErrorType> lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
      Specified by:
      lookupErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • doLookupErrorType

      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)
    • getErrorType

      public Optional<org.mule.runtime.api.message.ErrorType> getErrorType(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
      Specified by:
      getErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getErrorNamespaces

      public Collection<String> getErrorNamespaces()
      Specified by:
      getErrorNamespaces in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getAnyErrorType

      public org.mule.runtime.api.message.ErrorType getAnyErrorType()
      Specified by:
      getAnyErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getSourceErrorType

      public org.mule.runtime.api.message.ErrorType getSourceErrorType()
      Specified by:
      getSourceErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getSourceResponseErrorType

      public org.mule.runtime.api.message.ErrorType getSourceResponseErrorType()
      Specified by:
      getSourceResponseErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getCriticalErrorType

      public org.mule.runtime.api.message.ErrorType getCriticalErrorType()
      Specified by:
      getCriticalErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getErrorTypes

      public Set<org.mule.runtime.api.message.ErrorType> getErrorTypes()
      Specified by:
      getErrorTypes in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getInternalErrorTypes

      public Set<org.mule.runtime.api.message.ErrorType> getInternalErrorTypes()
      Specified by:
      getInternalErrorTypes in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getHierarchy

      public List<ErrorTypeHierarchyItemDTO> getHierarchy()