示例
public
static
class
ClassA {
public
void
methodA {
try
{
//...
}
catch
( Throwable t ) {
//...
}
}
}
解决方案
为 throws 子句中声明的每个可抛出的异常创建专门的 catch 子句。