@ComponentProfile(summary="Default behaviour for handling exceptions during pooled-split-join-service execution", since="3.11.1", tag="service,splitjoin") public class ServiceExceptionHandler extends java.lang.Object implements ServiceErrorHandler
ServiceErrorHandler
that captures exceptions thrown and rethrows the first
exception when requested.In the adapter configuration file this class is aliased as default-service-exception-handler which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ServiceExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
clearExceptions() |
java.lang.Throwable |
getFirstThrowableException() |
void |
throwExceptionAsRequired() |
void |
throwFirstException()
Deprecated.
use
throwExceptionAsRequired() instead. |
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
markSuccessful
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
public java.lang.Throwable getFirstThrowableException()
public void clearExceptions()
@Deprecated public void throwFirstException() throws ServiceException
throwExceptionAsRequired()
instead.ServiceException
- if there was an exception.getFirstThrowableException()
public void throwExceptionAsRequired() throws ServiceException
throwExceptionAsRequired
in interface ServiceErrorHandler
ServiceException