IN PROGRESS - issue BATCH-491: checked exception handling

http://jira.springframework.org/browse/BATCH-491

exception handler signature changed to 'throws Throwable' so that it can simply rethrow without wrapping.
This commit is contained in:
robokaso
2008-03-25 10:01:47 +00:00
parent f9e4181182
commit 786fcd9bb9
14 changed files with 47 additions and 52 deletions

View File

@@ -11,10 +11,10 @@ public class FootballExceptionHandler implements ExceptionHandler {
.getLog(FootballExceptionHandler.class);
public void handleException(RepeatContext context, Throwable throwable)
throws RuntimeException {
throws Throwable {
if (!(throwable instanceof NumberFormatException)) {
throw new RuntimeException(throwable);
throw throwable;
} else {
logger.error("Number Format Exception!", throwable);
}