Rethrowing the original IOException.

This commit is contained in:
Mark Fisher
2009-07-16 13:35:19 +00:00
parent f568344e59
commit 8f3a3db480
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ public class FileReadingMessageSource implements MessageSource<File>, Initializi
}
catch (Exception e) {
throw new IllegalArgumentException(
"Unexpected IOException when looking for source directory: " + inputDirectory, e);
"Unexpected IOException when looking for source directory: " + inputDirectory, ioe);
}
}
}

View File

@@ -89,7 +89,7 @@ public class FileWritingMessageHandler extends AbstractReplyProducingMessageHand
}
catch (Exception e) {
throw new IllegalArgumentException(
"Unexpected IOException when looking for destination directory: " + destinationDirectory, e);
"Unexpected IOException when looking for destination directory: " + destinationDirectory, ioe);
}
}
this.destinationDirectory = dir;