Class JOptUncaughtExceptionHandler
java.lang.Object
com.dna.jopt.framework.exception.uncaught.JOptUncaughtExceptionHandler
- All Implemented Interfaces:
IJOptUncaughtExceptionHandler
,Thread.UncaughtExceptionHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Attaches theIOptimization
as anOptional
.Gets theattachedIOptimization
as anOptional
.Gets the theIErrorStreamer
.void
setErrorStreamer
(IErrorStreamer errorStreamer) Sets the input as theerrorStreamer
.void
uncaughtException
(Thread t, Throwable e)
-
Constructor Details
-
JOptUncaughtExceptionHandler
-
JOptUncaughtExceptionHandler
public JOptUncaughtExceptionHandler()
-
-
Method Details
-
attachOptimization
Description copied from interface:IJOptUncaughtExceptionHandler
Attaches theIOptimization
as anOptional
.- Specified by:
attachOptimization
in interfaceIJOptUncaughtExceptionHandler
- Parameters:
opti
- the optimization to attach
-
getAttachedOptimization
Description copied from interface:IJOptUncaughtExceptionHandler
Gets theattachedIOptimization
as anOptional
.- Specified by:
getAttachedOptimization
in interfaceIJOptUncaughtExceptionHandler
- Returns:
- the optimization
-
setErrorStreamer
Description copied from interface:IJOptUncaughtExceptionHandler
Sets the input as theerrorStreamer
. The default value isnull
.- Specified by:
setErrorStreamer
in interfaceIJOptUncaughtExceptionHandler
- Parameters:
errorStreamer
- error streamer
-
getErrorStreamer
Description copied from interface:IJOptUncaughtExceptionHandler
Gets the theIErrorStreamer
.- Specified by:
getErrorStreamer
in interfaceIJOptUncaughtExceptionHandler
- Returns:
- the errorStreamer
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-