From 5bc993e350c338ea39f019cd4c45064217309f34 Mon Sep 17 00:00:00 2001 From: lucasward Date: Thu, 24 Jan 2008 13:40:55 +0000 Subject: [PATCH] BATCH-304: Created new job launcher that does not use BeanFactoryLocator. --- .../domain/IncorrectJobCountException.java | 34 +++++++++++++++++++ .../batch/core/domain/NoSuchJobException.java | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 spring-batch-core/src/main/java/org/springframework/batch/core/domain/IncorrectJobCountException.java diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/domain/IncorrectJobCountException.java b/spring-batch-core/src/main/java/org/springframework/batch/core/domain/IncorrectJobCountException.java new file mode 100644 index 000000000..a628d123a --- /dev/null +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/domain/IncorrectJobCountException.java @@ -0,0 +1,34 @@ +/* + * Copyright 2006-2008 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.springframework.batch.core.domain; + +/** + * Checked exception indicating that an Incorrect number of jobs has + * been found. + * + * @author Lucas Ward + * + */ +public class IncorrectJobCountException extends JobException { + + public IncorrectJobCountException(String msg) { + super(msg); + } + + public IncorrectJobCountException(String msg, Throwable e) { + super(msg, e); + } +} diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/domain/NoSuchJobException.java b/spring-batch-core/src/main/java/org/springframework/batch/core/domain/NoSuchJobException.java index eb267ba6e..fb951a3c4 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/domain/NoSuchJobException.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/domain/NoSuchJobException.java @@ -25,6 +25,8 @@ package org.springframework.batch.core.domain; */ public class NoSuchJobException extends JobException { + private static final long serialVersionUID = -8044082897778706564L; + /** * Create an exception with the given message. */