Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getException method to StepExecution interface #47

Open
follis opened this issue Jul 15, 2020 · 0 comments
Open

Add getException method to StepExecution interface #47

follis opened this issue Jul 15, 2020 · 0 comments

Comments

@follis
Copy link
Contributor

follis commented Jul 15, 2020

Originally opened as bug 5432 by cf126330

--------------Original Comment History----------------------------
Comment from = cf126330 on 2013-10-02 15:15:54 +0000

StepContext has a getException method:
http://docs.oracle.com/javaee/7/api/javax/batch/runtime/context/StepContext.html

But StepExecution does not:
http://docs.oracle.com/javaee/7/api/javax/batch/runtime/StepExecution.html

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants