org.jminor.common.ui
Class DefaultExceptionHandler
java.lang.Object
org.jminor.common.ui.DefaultExceptionHandler
- All Implemented Interfaces:
- ExceptionHandler
public final class DefaultExceptionHandler
- extends Object
- implements ExceptionHandler
A default ExcptionHandler implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultExceptionHandler
public DefaultExceptionHandler()
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 exceptiondialogParent
- the component to use as parent to the exception dialog
handleDbException
public void handleDbException(DatabaseException dbException,
JComponent dialogParent)