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 Summary
Constructors -
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
-
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:
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
-