[BATCH-430] Renamed InfrastructureException to UnexpectedJobExecutionException
This commit is contained in:
@@ -21,7 +21,7 @@ package org.springframework.batch.core;
|
||||
* Exception to indicate the the job has been interrupted. The exception state
|
||||
* indicated is not normally recoverable by batch application clients, but
|
||||
* internally it is useful to force a check. The exception will often be wrapped
|
||||
* in a runtime exception (usually {@link InfrastructureException} before
|
||||
* in a runtime exception (usually {@link UnexpectedJobExecutionException} before
|
||||
* reaching the client.
|
||||
*
|
||||
* @author Lucas Ward
|
||||
|
||||
@@ -23,7 +23,7 @@ package org.springframework.batch.core;
|
||||
* @author Lucas Ward
|
||||
*
|
||||
*/
|
||||
public class InfrastructureException extends RuntimeException {
|
||||
public class UnexpectedJobExecutionException extends RuntimeException {
|
||||
private static final long serialVersionUID = 8838982304219248527L;
|
||||
|
||||
/**
|
||||
@@ -32,7 +32,7 @@ public class InfrastructureException extends RuntimeException {
|
||||
* @param msg the exception message.
|
||||
*
|
||||
*/
|
||||
public InfrastructureException(String msg) {
|
||||
public UnexpectedJobExecutionException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class InfrastructureException extends RuntimeException {
|
||||
* @param msg the exception message.
|
||||
*
|
||||
*/
|
||||
public InfrastructureException(String msg, Throwable nested) {
|
||||
public UnexpectedJobExecutionException(String msg, Throwable nested) {
|
||||
super(msg, nested);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class InfrastructureException extends RuntimeException {
|
||||
* Constructs a new instance with a nested exception. The error code is
|
||||
* defaulted to 1 and the message is empty.
|
||||
*/
|
||||
public InfrastructureException(Throwable nested) {
|
||||
public UnexpectedJobExecutionException(Throwable nested) {
|
||||
super(nested);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class InfrastructureException extends RuntimeException {
|
||||
* Constructs a new instance, the error code is defaulted to one and the
|
||||
* message is empty.
|
||||
*/
|
||||
public InfrastructureException() {
|
||||
public UnexpectedJobExecutionException() {
|
||||
super();
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ public class JobSupport implements BeanNameAware, Job {
|
||||
/* (non-Javadoc)
|
||||
* @see org.springframework.batch.core.domain.Job#run(org.springframework.batch.core.domain.JobExecution)
|
||||
*/
|
||||
public void execute(JobExecution execution) throws InfrastructureException {
|
||||
public void execute(JobExecution execution) throws UnexpectedJobExecutionException {
|
||||
throw new UnsupportedOperationException("JobSupport does not provide an implementation of run(). Use a smarter subclass.");
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ public class StepSupport implements Step, BeanNameAware {
|
||||
*
|
||||
* @see org.springframework.batch.core.Step#execute(org.springframework.batch.core.StepExecution)
|
||||
*/
|
||||
public void execute(StepExecution stepExecution) throws JobInterruptedException, InfrastructureException {
|
||||
public void execute(StepExecution stepExecution) throws JobInterruptedException, UnexpectedJobExecutionException {
|
||||
throw new UnsupportedOperationException(
|
||||
"Cannot process a StepExecution. Use a smarter subclass of StepSupport.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user