摘要:
我们先来认识一下Error 和Exception, 两个都是Throwable类的直接子类。 Javadoc很好的说明了Error类:An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions.抛出Error时,程序就是出现了严重的错误,程序会立即终止运行。我们来看一下Error的一些子类和它们在javadoc中的说明:Annot 阅读全文