CidEncodingException "hided" at line 150-156. The catch clause does not have CidEncodingException as primary exception so java.lang.Exception will catch and hide the first throw.
should change at line 156 from
catch(Exception e) { ...
with
catch(CidEncodingException cee) { // capture and rethrow
throw cee;
}
catch(Exception e) { ... // everything else
`
so in calling method we can distinguish about the two causes.
CidEncodingException "hided" at line 150-156. The catch clause does not have CidEncodingException as primary exception so java.lang.Exception will catch and hide the first throw.
should change at line 156 from
catch(Exception e) { ...with
catch(CidEncodingException cee) { // capture and rethrowthrow cee;}catch(Exception e) { ... // everything else`
so in calling method we can distinguish about the two causes.