I have a class class_Abelonging to another class class_Bthat has methods with calls to other objects working with HTTP and JSON. Now I do not want to handle these exceptions at class_B, but rather at a higher level, and thus pass them through throw eto class_A.
Now I am wondering, when in my class Asurrounding method call class_B, with try / catch, how can I get all the possible Exceptions that can be redirected from this method or subclass methods (like HTTP and JSON).
A preferred method would be to get possible Exceptions directly in Eclipse, but other solutions are also appreciated.
(Please let me know if my problem is unclear.)
Update: What I'm looking for is not a real implementation, but rather a list of potential exceptions, so I can see and decide for which cases it is better to create a specific catch block and which Exceptions can be handled by a common catch block.
source
share