Catch exception in run action

This commit is contained in:
J-Jamet committed 2021-11-15 12:04:46 +01:00
1 parent 9a26acee35
commit 4408b2e488
1 file changed
+7 -3
@@ -31,9 +31,13 @@ abstract class ActionRunnable: Runnable {
var result: Result = Result()
override fun run() {
onStartRun()
onActionRun()
onFinishRun()
try {
onStartRun()
onActionRun()
onFinishRun()
} catch (runException: Exception) {
setError(runException)
}
}
abstract fun onStartRun()