public class JOptUncaughtExceptionHandler extends Object implements IJOptUncaughtExceptionHandler
Constructor and Description |
---|
JOptUncaughtExceptionHandler() |
JOptUncaughtExceptionHandler(IJOptUncaughtExceptionHandler innerHandler) |
Modifier and Type | Method and Description |
---|---|
void |
attachOptimization(IOptimization opti)
Attaches the
IOptimization as an Optional . |
Optional<IOptimization> |
getAttachedOptimization()
Gets theattached
IOptimization as an Optional . |
IErrorStreamer |
getErrorStreamer()
Gets the the
IErrorStreamer . |
void |
setErrorStreamer(IErrorStreamer errorStreamer)
Sets the input as the
errorStreamer . |
void |
uncaughtException(Thread t,
Throwable e) |
public JOptUncaughtExceptionHandler(IJOptUncaughtExceptionHandler innerHandler)
public JOptUncaughtExceptionHandler()
public void attachOptimization(IOptimization opti)
IJOptUncaughtExceptionHandler
IOptimization
as an Optional
.attachOptimization
in interface IJOptUncaughtExceptionHandler
opti
- the optimization to attachpublic Optional<IOptimization> getAttachedOptimization()
IJOptUncaughtExceptionHandler
IOptimization
as an Optional
.getAttachedOptimization
in interface IJOptUncaughtExceptionHandler
public void setErrorStreamer(IErrorStreamer errorStreamer)
IJOptUncaughtExceptionHandler
errorStreamer
.
The default value is null
.setErrorStreamer
in interface IJOptUncaughtExceptionHandler
errorStreamer
- error streamerpublic IErrorStreamer getErrorStreamer()
IJOptUncaughtExceptionHandler
IErrorStreamer
.getErrorStreamer
in interface IJOptUncaughtExceptionHandler
public void uncaughtException(Thread t, Throwable e)
uncaughtException
in interface Thread.UncaughtExceptionHandler
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.