0

in Java
ClientProtocolException extends IOException
my question is if I want to catch both individually for logging purposes
what should be the order of the catch clause and why?

    } catch (ClientProtocolException e) {
        throw Exception("got ClientProtocolException ")
    } catch (IOException e) {
        throw Exception("got IOException")          
    }
JavaSheriff
  • 7,074
  • 20
  • 89
  • 159

0 Answers0