javaweb-servicesnetwork-programmingunchecked-exception

Which unchecked exceptions to catch when dealing with networking (URLs, connections, ...)?


I'm working on webservices with Axis and among the checked exceptions that its methods declare I have: ServiceException, RemoteException and AxisFault (those depend, of course, on the specific method invoked, so these are not all the relevant exceptions, I know, but that's not the point here).

Doing some tests on my code, I inadvertedly put a long port number on a URL that made the code throw the (unchecked) exception IllegalArgumentException, that I wasn't catching until now.

Now, which are the relevant unchecked exceptions that I must handle, when working withh webservices and with networking in general?
I tried to search on the net, but I keep getting Checked vs unchecked exceptions results.

Any advice? Is there a list or a guide out there?


Solution

  • This image will help you.Meanwhile no need to catch unchecked exceptions.(IllegalArgumentException)

    enter image description here