Exceptions
There are many exceptions that can be managed by the batches. The JSL descriptor file introduces three types of exception:
- Skippable exceptions: In this tag, we can put the exceptions that will not be reported by the listener. The skipped exceptions will allow the transaction continue.
- Retryable exceptions: If an exception is added here, the transaction will be restarted, and the process will again attempt to execute the work.
- No rollback exceptions: The exceptions of this tag will be reported by the listener, but the transaction will continue to work until the end, allowing the partial write of the process.
Here's a sample of JSL configuration inside the chunk:
<chunk> ... <skippable-exception-classes> <includeclass= "it.vige.realtime.batchesworkflow.checkpoint.exception.SkippedException"/> <excludeclass= "it.vige.realtime.batchesworkflow.checkpoint.exception.NoSkippedException"/> </skippable-exception-classes> <retryable-exception...