1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Refactor.

This commit is contained in:
Cedric Beust 2016-02-14 06:29:47 -08:00
parent c266cf517f
commit f7471675d4

View file

@ -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 {