mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-27 04:16:42 -08:00
Catch exception in run action
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user