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

public class EnrichedErrorTypeRepository extends Object implements org.mule.runtime.api.exception.ErrorTypeRepository
A decorator for ErrorTypeRepository that enriches it with additional related error types.
  • Constructor Details

    • EnrichedErrorTypeRepository

      public EnrichedErrorTypeRepository(org.mule.runtime.api.exception.ErrorTypeRepository delegate)
      Constructs a new DeploymentEnricherErrorTypeRepository.
      Parameters:
      delegate - the underlying ErrorTypeRepository to be enriched
  • Method Details

    • addErrorType

      public org.mule.runtime.api.message.ErrorType addErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier, org.mule.runtime.api.message.ErrorType parentErrorType)
      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 errorTypeIdentifier, org.mule.runtime.api.message.ErrorType parentErrorType)
      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 errorTypeComponentIdentifier)
      Specified by:
      lookupErrorType in interface org.mule.runtime.api.exception.ErrorTypeRepository
    • getErrorType

      public Optional<org.mule.runtime.api.message.ErrorType> getErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier)
      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