Class EnrichedErrorTypeRepository
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 Summary
ConstructorsConstructorDescriptionEnrichedErrorTypeRepository(org.mule.runtime.api.exception.ErrorTypeRepository delegate) Constructs a newDeploymentEnricherErrorTypeRepository. -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.message.ErrorTypeaddErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier, org.mule.runtime.api.message.ErrorType parentErrorType) org.mule.runtime.api.message.ErrorTypeaddInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier, org.mule.runtime.api.message.ErrorType parentErrorType) org.mule.runtime.api.message.ErrorTypeorg.mule.runtime.api.message.ErrorTypeOptional<org.mule.runtime.api.message.ErrorType>getErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier) Set<org.mule.runtime.api.message.ErrorType>Set<org.mule.runtime.api.message.ErrorType>org.mule.runtime.api.message.ErrorTypeorg.mule.runtime.api.message.ErrorTypeOptional<org.mule.runtime.api.message.ErrorType>lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeComponentIdentifier)
-
Constructor Details
-
EnrichedErrorTypeRepository
public EnrichedErrorTypeRepository(org.mule.runtime.api.exception.ErrorTypeRepository delegate) Constructs a newDeploymentEnricherErrorTypeRepository.- Parameters:
delegate- the underlyingErrorTypeRepositoryto 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:
addErrorTypein interfaceorg.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:
addInternalErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
lookupErrorType
public Optional<org.mule.runtime.api.message.ErrorType> lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeComponentIdentifier) - Specified by:
lookupErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getErrorType
public Optional<org.mule.runtime.api.message.ErrorType> getErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier) - Specified by:
getErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getErrorNamespaces
- Specified by:
getErrorNamespacesin interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getAnyErrorType
public org.mule.runtime.api.message.ErrorType getAnyErrorType()- Specified by:
getAnyErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getSourceErrorType
public org.mule.runtime.api.message.ErrorType getSourceErrorType()- Specified by:
getSourceErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getSourceResponseErrorType
public org.mule.runtime.api.message.ErrorType getSourceResponseErrorType()- Specified by:
getSourceResponseErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getCriticalErrorType
public org.mule.runtime.api.message.ErrorType getCriticalErrorType()- Specified by:
getCriticalErrorTypein interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getErrorTypes
- Specified by:
getErrorTypesin interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-
getInternalErrorTypes
- Specified by:
getInternalErrorTypesin interfaceorg.mule.runtime.api.exception.ErrorTypeRepository
-