diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2018-07-20 22:03:22 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-07-30 16:45:46 +0300 |
commit | c5b864d92dd9c4aa3706086a77ef2e30e5f543a1 (patch) | |
tree | 05f8447ef9c981acfbb36249313b1653139c6f0f | |
parent | 4b1fc2e1fbbd5ab63cc6f5077bb4afe19834992e (diff) | |
download | vaadin-framework-c5b864d92dd9c4aa3706086a77ef2e30e5f543a1.tar.gz vaadin-framework-c5b864d92dd9c4aa3706086a77ef2e30e5f543a1.zip |
Update LettingTheUserDownloadAFile.asciidoc
(cherry picked from commit 7b2553d)
-rw-r--r-- | documentation/articles/LettingTheUserDownloadAFile.asciidoc | 7 |
1 files 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. |