APIException constructor should not `throw Exception`
janv opened this issue · comments
Dealing with the Chargebee API Excpetions is quite painful. Even though they are descendants of the RuntimeException
and should not need to be checked, their constructor has a throws Exception
annotation, defeating the purpose!
chargebee-java/src/main/java/com/chargebee/APIException.java
Lines 36 to 47 in 211ede4
Could you please remove that throws Exception
declaration?
And consequently also remove all the other unnecessary throws Exception
declarations from your request
methods?
This has been fixed since v2.7.8