Skip to content
Snippets Groups Projects
Commit be1f92ae authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

removed catch block

parent 5ec2b56b
No related branches found
No related tags found
No related merge requests found
...@@ -50,11 +50,7 @@ class ThreadService extends AbstractService<ThreadService> { ...@@ -50,11 +50,7 @@ class ThreadService extends AbstractService<ThreadService> {
@Override @Override
void onInitialize() { void onInitialize() {
IExceptionListenerFactory factory; IExceptionListenerFactory factory;
try { factory = ((Configuration) compositeStage).getFactory();
factory = ((Configuration) compositeStage).getFactory();
} catch (ClassCastException e) {
throw new IllegalStateException("Something went wrong");
}
if (threadableStages.isEmpty()) { if (threadableStages.isEmpty()) {
throw new IllegalStateException("No stage was added using the addThreadableStage(..) method. Add at least one stage."); throw new IllegalStateException("No stage was added using the addThreadableStage(..) method. Add at least one stage.");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment