@@ -100,7 +100,7 @@ public File download( String url, List<TransferListener> transferListeners, Mess
100100 }
101101 catch ( MalformedURLException e )
102102 {
103- throw new DownloadFailedException ( url , "Download failed due to invalid URL. Reason: " + e . getMessage () ,
103+ throw new DownloadFailedException ( url , "Download failed due to invalid URL." ,
104104 e );
105105 }
106106
@@ -113,7 +113,7 @@ public File download( String url, List<TransferListener> transferListeners, Mess
113113 }
114114 catch ( UnsupportedProtocolException e )
115115 {
116- throw new DownloadFailedException ( url , "Download failed. " , e );
116+ throw new DownloadFailedException ( url , "Download failed." , e );
117117 }
118118
119119 messageHolder .addMessage ( "Using wagon: " + wagon + " to download: " + url );
@@ -128,7 +128,7 @@ public File download( String url, List<TransferListener> transferListeners, Mess
128128 }
129129 catch ( IOException e )
130130 {
131- throw new DownloadFailedException ( url , "Failed to create temporary file target for download. " , e );
131+ throw new DownloadFailedException ( url , "Failed to create temporary file target for download." , e );
132132 }
133133
134134 messageHolder .addMessage ( "Download target is: " + downloaded .getAbsolutePath () );
@@ -155,11 +155,11 @@ public File download( String url, List<TransferListener> transferListeners, Mess
155155 }
156156 catch ( ConnectionException e )
157157 {
158- throw new DownloadFailedException ( url , "Download failed. " , e );
158+ throw new DownloadFailedException ( url , "Download failed." , e );
159159 }
160160 catch ( AuthenticationException e )
161161 {
162- throw new DownloadFailedException ( url , "Download failed. " , e );
162+ throw new DownloadFailedException ( url , "Download failed." , e );
163163 }
164164
165165 messageHolder .addMessage ( "Getting: " + remotePath );
@@ -175,15 +175,15 @@ public File download( String url, List<TransferListener> transferListeners, Mess
175175 }
176176 catch ( TransferFailedException e )
177177 {
178- throw new DownloadFailedException ( url , "Download failed. " , e );
178+ throw new DownloadFailedException ( url , "Download failed." , e );
179179 }
180180 catch ( ResourceDoesNotExistException e )
181181 {
182- throw new DownloadFailedException ( url , "Download failed. " , e );
182+ throw new DownloadFailedException ( url , "Download failed." , e );
183183 }
184184 catch ( AuthorizationException e )
185185 {
186- throw new DownloadFailedException ( url , "Download failed. " , e );
186+ throw new DownloadFailedException ( url , "Download failed." , e );
187187 }
188188 finally
189189 {
0 commit comments