mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Refactor.
This commit is contained in:
parent
c266cf517f
commit
f7471675d4
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ public class DynamicGraphExecutor<T>(val graph: DynamicGraph<T>,
|
||||||
} catch(ex: TimeoutException) {
|
} catch(ex: TimeoutException) {
|
||||||
log(2, "Time out")
|
log(2, "Time out")
|
||||||
} catch(ex: Exception) {
|
} catch(ex: Exception) {
|
||||||
if (ex.cause is InvocationTargetException) {
|
val ite = ex.cause
|
||||||
val ite = ex.cause
|
if (ite is InvocationTargetException) {
|
||||||
if (ite.targetException is KobaltException) {
|
if (ite.targetException is KobaltException) {
|
||||||
throw (ex.cause as InvocationTargetException).targetException
|
throw (ex.cause as InvocationTargetException).targetException
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue