org.mymedialite.util
Class Handlers

java.lang.Object
  extended by org.mymedialite.util.Handlers
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class Handlers
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler

Class providing exception handlers.


Constructor Summary
Handlers()
           
 
Method Summary
 void uncaughtException(java.lang.Thread sender, java.lang.Throwable unhandledException)
          React to an unhandled exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handlers

public Handlers()
Method Detail

uncaughtException

public void uncaughtException(java.lang.Thread sender,
                              java.lang.Throwable unhandledException)
React to an unhandled exception. Give out the error message and the stack trace, then terminate the program. IOExceptions get special treatment.

Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
Parameters:
sender - the thread issuing the exception
unhandledException - the unhandled exception