public class ErrorTypeRepository extends Object
ErrorTypes in a mule artifact.
Only one instance of ErrorType must exists describing the same combination of error identifier and namespace.| Modifier and Type | Field and Description |
|---|---|
protected static org.mule.runtime.api.message.ErrorType |
ANY_ERROR_TYPE
Error type that represents all of them that can be handled.
|
protected static org.mule.runtime.api.message.ErrorType |
CRITICAL_ERROR_TYPE
Error type for which there will be no handling since it represents an error so critical it should not be handled.
|
protected static org.mule.runtime.api.message.ErrorType |
SOURCE_ERROR_TYPE
Parent error type for errors that occur on the source of a flow.
|
protected static org.mule.runtime.api.message.ErrorType |
SOURCE_RESPONSE_ERROR_TYPE
Parent error type for errors that occur in a source processing a successful response of a flow.
|
protected static org.mule.runtime.api.message.ErrorType |
UNKNOWN_ERROR_TYPE
Error type for which there's no clear reason for failure.
|
| Constructor and Description |
|---|
ErrorTypeRepository() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.ErrorType |
addErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier,
org.mule.runtime.api.message.ErrorType parentErrorType)
Adds and returns an
ErrorType for a given identifier with the given parent that will be fully visible, meaning it
will be available for use in on-error components. |
org.mule.runtime.api.message.ErrorType |
addInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier,
org.mule.runtime.api.message.ErrorType parentErrorType)
Adds and returns an
ErrorType for a given identifier with the given parent that will be only used internally, meaning
it won't be available for use in on-error components. |
org.mule.runtime.api.message.ErrorType |
getAnyErrorType()
Gets the
ErrorType instance for ANY error type. |
org.mule.runtime.api.message.ErrorType |
getCriticalErrorType()
Gets the
ErrorType instance for CRITICAL error type. |
Optional<org.mule.runtime.api.message.ErrorType> |
getErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier)
Returns the specified error's type if present.
|
org.mule.runtime.api.message.ErrorType |
getSourceErrorType()
Gets the
ErrorType instance for SOURCE error type. |
org.mule.runtime.api.message.ErrorType |
getSourceResponseErrorType()
Gets the
ErrorType instance for SOURCE_RESPONSE error type. |
Optional<org.mule.runtime.api.message.ErrorType> |
lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeComponentIdentifier)
Looks up the specified error's type and returns it if found and available for general use (error handling).
|
protected static final org.mule.runtime.api.message.ErrorType ANY_ERROR_TYPE
protected static final org.mule.runtime.api.message.ErrorType SOURCE_ERROR_TYPE
protected static final org.mule.runtime.api.message.ErrorType SOURCE_RESPONSE_ERROR_TYPE
protected static final org.mule.runtime.api.message.ErrorType UNKNOWN_ERROR_TYPE
protected static final org.mule.runtime.api.message.ErrorType CRITICAL_ERROR_TYPE
public org.mule.runtime.api.message.ErrorType addErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier,
org.mule.runtime.api.message.ErrorType parentErrorType)
ErrorType for a given identifier with the given parent that will be fully visible, meaning it
will be available for use in on-error components.errorTypeIdentifier - the ComponentIdentifier for the errorparentErrorType - the ErrorType that will act as parentErrorTypepublic org.mule.runtime.api.message.ErrorType addInternalErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier,
org.mule.runtime.api.message.ErrorType parentErrorType)
ErrorType for a given identifier with the given parent that will be only used internally, meaning
it won't be available for use in on-error components.errorTypeIdentifier - the ComponentIdentifier for the errorparentErrorType - the ErrorType that will act as parentErrorTypepublic Optional<org.mule.runtime.api.message.ErrorType> lookupErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeComponentIdentifier)
errorTypeComponentIdentifier - the ComponentIdentifier for the errorOptional with the corresponding ErrorType or an empty onepublic Optional<org.mule.runtime.api.message.ErrorType> getErrorType(org.mule.runtime.api.component.ComponentIdentifier errorTypeIdentifier)
lookupErrorType(ComponentIdentifier), this will return the
ErrorType even if it's not available for general use (error handling).errorTypeIdentifier - the ComponentIdentifier for the errorOptional with the corresponding ErrorType or an empty onepublic org.mule.runtime.api.message.ErrorType getAnyErrorType()
ErrorType instance for ANY error type.public org.mule.runtime.api.message.ErrorType getSourceErrorType()
ErrorType instance for SOURCE error type.public org.mule.runtime.api.message.ErrorType getSourceResponseErrorType()
ErrorType instance for SOURCE_RESPONSE error type.public org.mule.runtime.api.message.ErrorType getCriticalErrorType()
ErrorType instance for CRITICAL error type.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.