You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Phil Steitz <ph...@gmail.com> on 2021/07/01 22:34:37 UTC

Re: [compress] Dealing with uncaught RuntimeExceptions (again)


On 6/29/21 8:08 AM, Stefan Bodewig wrote:
> On 2021-06-29, Miguel Munoz wrote:
>
>> Catching all RuntimeExceptions and wrapping them in an IOException
>> looks like the cleanest solution. RuntimeExceptions usually mean bugs,
>> so if the archive code is throwing them due to a corrupted archive, it
>> makes sense to wrap it in a checked exception. I would like to suggest
>> creating a new class looking something like this:
>> public class CorruptedArchiveException extends IOException { }
> https://github.com/apache/commons-compress/compare/catch-RuntimeExceptions
+1
As a user, this is what I would like to see.   I especially like the 
class javadoc :)

Phil
>
> :-)
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org