diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-31 09:28:40 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-31 09:28:40 +0000 |
commit | 5fd9dbe55f833142bf0dd5fbfe4d419afb12e4a7 (patch) | |
tree | 424b2a3d606e7f00ddc535add778fdbeae59f5ea /archiva-modules/archiva-scheduler/archiva-scheduler-indexing | |
parent | 8bfc53c7e6f1d09342f45aecb55d5e5ad066bc1d (diff) | |
download | archiva-5fd9dbe55f833142bf0dd5fbfe4d419afb12e4a7.tar.gz archiva-5fd9dbe55f833142bf0dd5fbfe4d419afb12e4a7.zip |
preserve stack trace
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler/archiva-scheduler-indexing')
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java index 5cd8d6751..bc83da4c9 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java @@ -333,15 +333,17 @@ public class DownloadRemoteIndexTask } catch ( AuthorizationException e ) { - throw new IOException( e.getMessage() ); + throw new IOException( e.getMessage(), e ); } catch ( TransferFailedException e ) { - throw new IOException( e.getMessage() ); + throw new IOException( e.getMessage(), e ); } catch ( ResourceDoesNotExistException e ) { - throw new FileNotFoundException( e.getMessage() ); + FileNotFoundException fnfe = new FileNotFoundException( e.getMessage() ); + fnfe.initCause( e ); + throw fnfe; } } |