According to the Javadocs, "An Error...indicates serious problems that a reasonable application should not try to catch."
Catching Error or Throwable is dangerous. For example, if you do catch an OutOfMemoryError, what are you going to do about it? Trying to recover could lead to further OutOfMemoryErrors. |