de.unikassel.android.sdcframework.util
Class DefaultUncaughtExceptionHandler
java.lang.Object
de.unikassel.android.sdcframework.util.DefaultUncaughtExceptionHandler
- All Implemented Interfaces:
- Thread.UncaughtExceptionHandler
public class DefaultUncaughtExceptionHandler
- extends Object
- implements Thread.UncaughtExceptionHandler
A default handler for uncaught exceptions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
orgHandler
private Thread.UncaughtExceptionHandler orgHandler
- the original Handler
DefaultUncaughtExceptionHandler
public DefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler orgHandler)
- Constructor
- Parameters:
orgHandler
- the original handler
uncaughtException
public void uncaughtException(Thread thread,
Throwable ex)
- Specified by:
uncaughtException
in interface Thread.UncaughtExceptionHandler
doLogUncaughtException
private void doLogUncaughtException(Thread thread,
Throwable ex)
- Method to log the exception
- Parameters:
thread
- the threadex
- the exception