The URLConnection class contains default implementations
of at least 2 methods that internally catch Throwable and then
ignore the exception and simply return a default value.
An example of this is getHeaderFieldInt() and getHeaderFieldDate().
Even though the caught exceptions are Throwable it is wrong to simply
catch and then throw them away. In particular, the ThreadDeath
Throwable exception is used by the implementation of Thread.stop()
and must be rethrown if caught.
of at least 2 methods that internally catch Throwable and then
ignore the exception and simply return a default value.
An example of this is getHeaderFieldInt() and getHeaderFieldDate().
Even though the caught exceptions are Throwable it is wrong to simply
catch and then throw them away. In particular, the ThreadDeath
Throwable exception is used by the implementation of Thread.stop()
and must be rethrown if caught.