public class WebFaultException
Wrapper for all checked SOAP exceptions. Need for using on Circuit Breaker exceptions whitelist.
Example configuration:
lagom.circuit-breaker {
default.exception-whitelist = [
org.taymyr.lagom.soap.WebFaultException
]
}
| Modifier and Type | Class and Description |
|---|---|
static class |
WebFaultException.Companion
Utilities for work with
exception WebFaultException. |
| Modifier and Type | Field and Description |
|---|---|
static WebFaultException.Companion |
Companion
Utilities for work with
exception WebFaultException. |
| Constructor and Description |
|---|
WebFaultException(java.lang.Throwable cause)
Wrapper for all checked SOAP exceptions.
Need for using on Circuit Breaker exceptions whitelist.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
processWebFault(java.lang.Throwable e,
java.util.function.Function<java.lang.Throwable,? extends T> fn)
Processing
exception WebFaultException. |
public static WebFaultException.Companion Companion
Utilities for work with exception WebFaultException.
exception WebFaultExceptionpublic WebFaultException(java.lang.Throwable cause)
Wrapper for all checked SOAP exceptions. Need for using on Circuit Breaker exceptions whitelist.
Example configuration:
lagom.circuit-breaker {
default.exception-whitelist = [
org.taymyr.lagom.soap.WebFaultException
]
}
public static <T> T processWebFault(java.lang.Throwable e,
java.util.function.Function<java.lang.Throwable,? extends T> fn)
Processing exception WebFaultException.
Code example:
service.foo()
.thenApplyAsync(...)
.exceptionally(throwable -> processWebFault(throwable, e -> {
if (e instanceof CheckedException1) {
...
} else if (e instanceof CheckedException2) {
...
} else {
...
}
}));
T - Return type of method of SOAP service porte - Exception, thrown from calling of SOAP service portfn - Function of processing of checked SOAP exceptionexception WebFaultException