Rethrowing the original IOException.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user