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
Branches
Tags
No related merge requests found
......@@ -50,11 +50,7 @@ class ThreadService extends AbstractService<ThreadService> {
@Override
void onInitialize() {
IExceptionListenerFactory factory;
try {
factory = ((Configuration) compositeStage).getFactory();
} catch (ClassCastException e) {
throw new IllegalStateException("Something went wrong");
}
if (threadableStages.isEmpty()) {
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.
Please register or to comment