public static class WebFaultException.Companion
Utilities for work with exception WebFaultException.
exception WebFaultException| Modifier and Type | Method and Description |
|---|---|
<T> T |
processWebFault(java.lang.Throwable e,
java.util.function.Function<java.lang.Throwable,? extends T> fn)
Processing
exception WebFaultException. |
public <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