From c5b864d92dd9c4aa3706086a77ef2e30e5f543a1 Mon Sep 17 00:00:00 2001 From: Ilia Motornyi Date: Fri, 20 Jul 2018 22:03:22 +0300 Subject: Update LettingTheUserDownloadAFile.asciidoc (cherry picked from commit 7b2553d) --- documentation/articles/LettingTheUserDownloadAFile.asciidoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/documentation/articles/LettingTheUserDownloadAFile.asciidoc b/documentation/articles/LettingTheUserDownloadAFile.asciidoc index 209ef27c38..fa0564456d 100644 --- a/documentation/articles/LettingTheUserDownloadAFile.asciidoc +++ b/documentation/articles/LettingTheUserDownloadAFile.asciidoc @@ -114,9 +114,8 @@ public class OnDemandFileDownloader extends FileDownloader { ==== Cancelled downloads Since downloadable files may be quite big, and the download process may take time, the user might decide to -cancel the download process. It this case `IOException` may be thrown by the web server. In this case the exception -does not mean that something went wrong with the application, but it the. To prevent those exceptions to be logged, you can catch -and ignore it as here: +cancel the download process. It this case `IOException` may be thrown by the web server. That +does not mean something went wrong with the application, but the user pressed `Cancel` button during download. To prevent the exception to be logged, you can catch and ignore it as here: ```java public class IgnoreCancelDownloader extends FileDownloader { @@ -134,4 +133,4 @@ public class IgnoreCancelDownloader extends FileDownloader { } ``` -Note that the exception is a sublclass of `IOException`, but the particular class depends of the web container. +Note that the exception is a sublclass of `IOException`, but the particular class depends on the web container. -- cgit v1.2.3