@NoImplement
public interface ErrorTypeRepository
| Modifier and Type | Method and Description |
|---|---|
ErrorType |
addErrorType(ComponentIdentifier errorTypeIdentifier,
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. |
ErrorType |
addInternalErrorType(ComponentIdentifier errorTypeIdentifier,
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. |
ErrorType |
getAnyErrorType()
Gets the
ErrorType instance for ANY error type. |
ErrorType |
getCriticalErrorType()
Gets the
ErrorType instance for CRITICAL error type. |
Collection<String> |
getErrorNamespaces()
Returns the collection of current error namespaces.
|
Optional<ErrorType> |
getErrorType(ComponentIdentifier errorTypeIdentifier)
Returns the specified error's type if present.
|
Set<ErrorType> |
getErrorTypes()
Gets the
ErrorType instances for handleable errors available in this repository. |
Set<ErrorType> |
getInternalErrorTypes()
Gets the
ErrorType instances for un-handleable errors available in this repository. |
ErrorType |
getSourceErrorType()
Gets the
ErrorType instance for SOURCE error type. |
ErrorType |
getSourceResponseErrorType()
Gets the
ErrorType instance for SOURCE_RESPONSE error type. |
Optional<ErrorType> |
lookupErrorType(ComponentIdentifier errorTypeComponentIdentifier)
Looks up the specified error's type and returns it if found and available for general use (error handling).
|
ErrorType addErrorType(ComponentIdentifier errorTypeIdentifier, 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 parentErrorTypeErrorType addInternalErrorType(ComponentIdentifier errorTypeIdentifier, 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 parentErrorTypeOptional<ErrorType> lookupErrorType(ComponentIdentifier errorTypeComponentIdentifier)
errorTypeComponentIdentifier - the ComponentIdentifier for the errorOptional with the corresponding ErrorType or an empty oneOptional<ErrorType> getErrorType(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 oneCollection<String> getErrorNamespaces()
ErrorType getAnyErrorType()
ErrorType instance for ANY error type.ErrorType getSourceErrorType()
ErrorType instance for SOURCE error type.ErrorType getSourceResponseErrorType()
ErrorType instance for SOURCE_RESPONSE error type.ErrorType getCriticalErrorType()
ErrorType instance for CRITICAL error type.Set<ErrorType> getErrorTypes()
ErrorType instances for handleable errors available in this repository.Copyright © 2024 MuleSoft, Inc.. All rights reserved.