public class ServiceExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
Constructor and Description |
---|
ServiceExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
clearExceptions() |
java.lang.Throwable |
getFirstThrowableException() |
void |
throwFirstException()
Note that this also clears any exceptions.
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
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()
public void throwFirstException() throws ServiceException
ServiceException
- if there was an exception.getFirstThrowableException()