Class DefaultErrorTypeRepository

java.lang.Object
org.mule.runtime.ast.internal.error.DefaultErrorTypeRepository
All Implemented Interfaces:
org.mule.runtime.api.exception.ErrorTypeRepository

public class DefaultErrorTypeRepository extends Object implements org.mule.runtime.api.exception.ErrorTypeRepository
Repository for the different Error Types in a mule artifact. Only one instance of ErrorType must exists describing the same combination of error identifier and namespace.
Since:
1.0
  • Constructor Details

    • DefaultErrorTypeRepository

      public DefaultErrorTypeRepository()
  • 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