| 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. |
CompletableFuture<InterceptionEvent> |
InterceptionAction.fail(ErrorType errorType,
String msg)
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 |
Copyright © 2021 MuleSoft, Inc.. All rights reserved.