Bug 5432 - Add getException method to StepExecution interface
Add getException method to StepExecution interface
Status: NEW
Product: jbatch
Classification: Unclassified
Component: SPEC
All All
: P5 enhancement
: ---
Assigned To: ScottKurz
Depends on:
  Show dependency treegraph
Reported: 2013-10-02 15:15 UTC by cf126330
Modified: 2015-10-01 13:47 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description cf126330 2013-10-02 15:15:54 UTC
StepContext has a getException method:

But StepExecution does not:

Any exception that occurred during a step execution is vital data for a batch client, which can only get hold of StepExecution.  StepContext is intended more for the code running inside batch container, not the client.  So how about adding getException method to StepExecution interface?

A common use is, a batch job monitoring tool shows step execution data in a table:
id, name, batch status, exit status, exception, metrics