BATCH-338: Added extra constructors to StreamException.

This commit is contained in:
lucasward
2008-02-05 16:57:19 +00:00
parent bab5f97e84
commit 6012f6ed8a

View File

@@ -18,8 +18,11 @@ package org.springframework.batch.item;
import org.springframework.batch.io.exception.BatchCriticalException;
/**
* Exception representing any errors encountered while processing
* a stream.
*
* @author Dave Syer
*
* @author Lucas Ward
*/
public class StreamException extends BatchCriticalException {
@@ -29,5 +32,21 @@ public class StreamException extends BatchCriticalException {
public StreamException(String message) {
super(message);
}
/**
* Constructs a new instance with a message and nested exception.
*
* @param msg the exception message.
*
*/
public StreamException(String msg, Throwable nested) {
super(msg, nested);
}
/**
* Constructs a new instance with a nested exception and empty message.
*/
public StreamException(Throwable nested) {
super(nested);
}
}