示例
public
static
class
ClassA
throws
RuntimeException {
public
void
methodA {
//...
throw new
RuntimeException();
}
}
解决方案
为 throws 子句中声明的每个运行时异常创建专门的 catch 子句。