Modifier and Type | Method and Description |
---|---|
Optional<ErrorType> |
ConnectionException.getErrorType() |
Optional<ErrorType> |
ConnectionValidationResult.getErrorType() |
Modifier and Type | Method and Description |
---|---|
static ConnectionValidationResult |
ConnectionValidationResult.failure(String message,
ErrorType errorType,
Exception exception) |
Constructor and Description |
---|
ConnectionException(String message,
Throwable cause,
ErrorType errorType)
|
ConnectionException(String message,
Throwable cause,
ErrorType errorType,
Object connection)
|
Modifier and Type | Method and Description |
---|---|
ErrorType |
ErrorTypeSerializer.deserialize(String errorType)
Deserializes a JSON representation of an
ErrorType , to an actual instance of it. |
Modifier and Type | Method and Description |
---|---|
String |
ErrorTypeSerializer.serialize(ErrorType errorType)
Serializes an
ErrorType into JSON |
Modifier and Type | Method and Description |
---|---|
ErrorType |
ErrorTypeRepository.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 |
ErrorTypeRepository.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 |
ErrorTypeRepository.getAnyErrorType()
Gets the
ErrorType instance for ANY error type. |
ErrorType |
ErrorTypeRepository.getCriticalErrorType()
Gets the
ErrorType instance for CRITICAL error type. |
ErrorType |
TypedException.getErrorType() |
ErrorType |
ErrorTypeRepository.getSourceErrorType()
Gets the
ErrorType instance for SOURCE error type. |
ErrorType |
ErrorTypeRepository.getSourceResponseErrorType()
Gets the
ErrorType instance for SOURCE_RESPONSE error type. |
Modifier and Type | Method and Description |
---|---|
Optional<ErrorType> |
ErrorTypeRepository.getErrorType(ComponentIdentifier errorTypeIdentifier)
Returns the specified error's type if present.
|
Optional<ErrorType> |
ErrorTypeRepository.lookupErrorType(ComponentIdentifier errorTypeComponentIdentifier)
Looks up the specified error's type and returns it if found and available for general use (error handling).
|
Modifier and Type | Method and Description |
---|---|
ErrorType |
ErrorTypeRepository.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 |
ErrorTypeRepository.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. |
Constructor and Description |
---|
TypedException(Throwable throwable,
ErrorType errorType) |
TypedException(Throwable throwable,
ErrorType errorType,
String message) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<InterceptionEvent> |
InterceptionAction.fail(ErrorType errorType)
Interrupts the current interception chain, not running the next
interceptors in the chain and
the intercepted component. |
Modifier and Type | Method and Description |
---|---|
ErrorType |
Error.getErrorType()
Returns the type of the error.
|
ErrorType |
ErrorType.getParentErrorType()
An error can be an specific type of a more general error type in which case it must return the
general error as result of calling
getParentErrorType |
Modifier and Type | Method and Description |
---|---|
Optional<ErrorType> |
ExceptionMapper.resolveErrorType(Class<? extends Throwable> exceptionType)
Using the set of
ExceptionMapping s which this instance was configured with, it resolves the ErrorType
associated with the exception. |
Modifier and Type | Method and Description |
---|---|
ExceptionMapper.Builder |
ExceptionMapper.Builder.addExceptionMapping(Class<? extends Throwable> exceptionType,
ErrorType errorType)
Adds a mapping between an exception and an error type.
|
boolean |
DisjunctiveErrorTypeMatcher.match(ErrorType errorType) |
boolean |
ErrorTypeMatcher.match(ErrorType errorType) |
boolean |
SingleErrorTypeMatcher.match(ErrorType errorType) |
Constructor and Description |
---|
SingleErrorTypeMatcher(ErrorType errorType) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ExceptionUtils.isUnknownMuleError(ErrorType type)
Checks if an error type is MULE:UNKNOWN
|
Copyright © 2018. All rights reserved.