Community
Participate
Working Groups
I have a try/catch block where there are three catches. The first two catches are both subclasses of the Exception of the third catch, but there are additional subclasses of it as well, but Eclipse is stating that "Catch block is hidden by another one in the same try statement" and highlighting the third catch.
Created attachment 5913 [details] screenshot of circumstances Screenshot showing wrong warning message AND Exception hierarchy in type hierachy view
What are the declared exceptions thrown by AgentListener.retrieveServerVersion () ? This warning is an optional diagnosis which can be turned off. But usually it is a good indication (meaning you can discard the offending catch block).
Good catch, sorry about that, the call to retrieveServerVersion is declared to only return the two subclassed exceptions.