Skip to content
Snippets Groups Projects
Commit 37a2ee9a authored by JustAnotherChristoph's avatar JustAnotherChristoph
Browse files

using the already existing logger instead of an exception to inform about...

using the already existing logger instead of an exception to inform about calling the method on non-handled executionstates
parent cc509b1d
No related branches found
No related tags found
No related merge requests found
......@@ -42,8 +42,9 @@ class ExecutionEventHandler(
this.controller.stop(restart = true)
}
}
// TODO: Why does this not trigger additional warnings for uncatched exception?
else -> throw IllegalStateException("onAdd does not handle the current execution state ($currentState)")
else -> {
logger.info { "ExecutionEventHandler#onAdd(...) does not handle ExecutionState $currentState" }
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment