kriegaex / Galileo-Openbook-Cleaner

HTML cleaner for Galileo Computing's openbooks, implemented in Java
Other
64 stars 6 forks source link

Improve error handling (messages in addition to callstacks) #8

Closed kriegaex closed 11 years ago

kriegaex commented 11 years ago

For some common error situations like interrupted downloads due to network problems or unpacking corrupted ZIP archives (see #7) Openbook Cleaner should write more comprehensible error messages instead just Java callstacks obscured by AspectJ info which are incomprehensible by an average user.

kriegaex commented 11 years ago

Proxy and download problems still show callstacks because they are a valuable debug helper. Anyway, since @c1448eb1 there is an additional comprehensive help text with hints about JVM proxy parameters. I guess the downloader is kind of the hot spot where most exceptions occur, judging from the other tickets here.

kriegaex commented 11 years ago

Furthermore, now 0-byte length for ZIP files with subsequent unzip problems should not happen so often anymore because the main reason - output file was opened before the actual download connection was established - was eliminated in the code. I case of connection problems the file will now not even be created anymore. An interrupted download is another story though. Here it is still necessary to manually delete the bogus file before retrying.

kriegaex commented 11 years ago

Contained in the new release 1.1.0, see main page.