Package be.gaudry.model.exception
Class BrolExceptionHandler
java.lang.Object
be.gaudry.model.exception.BrolExceptionHandler
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
Custom handler for uncaught exceptions, invoked when a Thread
abruptly terminates due to an uncaught exception.
This implementation of Thread.UncaughtExceptionHandler
uses the
Log
associated to this class to output the exceptions.
This handler may be used into a "model dependency" classes, but it's better to use an other
appropriate handler if the class is a part of a "GUI dependency" to interact with the user.
Provided by the broldev.core.model project.- Since:
- 1.0 Oct 20, 2010, broldev.core.model 0.1.17 dependency
- Version:
- 1.0 Oct 20, 2010
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Allows to handle an exception immediately without throwing itvoid
uncaughtException(Thread t, Throwable e)
-
Constructor Details
-
BrolExceptionHandler
public BrolExceptionHandler()Builds an exception handler
-
-
Method Details
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-
handle
Allows to handle an exception immediately without throwing it- Parameters:
ex
- Exception to handle
-