org.jminor.common.ui
Class DefaultExceptionHandler

java.lang.Object
  extended by org.jminor.common.ui.DefaultExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public final class DefaultExceptionHandler
extends Object
implements ExceptionHandler

A default ExcptionHandler implementation.


Constructor Summary
DefaultExceptionHandler()
           
 
Method Summary
static ExceptionHandler getInstance()
           
 void handleDbException(DatabaseException dbException, JComponent dialogParent)
           
 void handleException(Throwable exception, JComponent dialogParent)
          Handle the given exception and display it to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExceptionHandler

public DefaultExceptionHandler()
Method Detail

getInstance

public static ExceptionHandler getInstance()

handleException

public void handleException(Throwable exception,
                            JComponent dialogParent)
Description copied from interface: ExceptionHandler
Handle the given exception and display it to the user.

Specified by:
handleException in interface ExceptionHandler
Parameters:
exception - the exception
dialogParent - the component to use as parent to the exception dialog

handleDbException

public void handleDbException(DatabaseException dbException,
                              JComponent dialogParent)