Why catch Exceptions in Java, when you can catch Throwables?

前端 未结 14 757
一整个雨季
一整个雨季 2020-11-27 13:44

We recently had a problem with a Java server application where the application was throwing Errors which were not caught because Error is a separate subclass of Throwable an

14条回答
  •  一生所求
    2020-11-27 14:17

    Slightly off topic, but you may also want to look at this very good article about exceptions.

提交回复
热议问题