pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Questionable Exception Handling
Date Sat, 02 Feb 2019 14:15:57 GMT
Am 01.02.2019 um 13:49 schrieb gavinreid@pseudocoder.co.uk:
>
> org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler;
>
>
> There are several instances where a Security Exception is caught and 
> thrown as IOException.
>
> Is there a particular reason for this?
>
> I would have expected GeneralSecurityException as a throws value.


Probably historical. But we can't change it because this would be a 
breaking change. Even if we do, there is a "rule" that one shouldn't 
throw more than one checked exception.

Tilman


>
> Kind Regards
>
> Gavin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message