BATCHEE-156 report wrong class names in exception config
typos in skippable-exception-classes and retryable-exception-classes
did silently get swallowed. Now they are properly reported
diff --git a/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ExceptionConfig.java b/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ExceptionConfig.java
index 25b67fc..1e5b314 100644
--- a/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ExceptionConfig.java
+++ b/jbatch/src/main/java/org/apache/batchee/container/impl/controller/chunk/ExceptionConfig.java
@@ -88,9 +88,9 @@
}
}
} catch (final ClassNotFoundException cnfe) {
- // no-op
+ throw new BatchContainerRuntimeException("Cannot load class defined in the batch jobs XML: " + exClassName, cnfe);
} catch (final NoClassDefFoundError ncdfe) {
- // no-op
+ throw new BatchContainerRuntimeException("Cannot load parts of the class defined in the batch jobs XML: " + exClassName, ncdfe);
}
}