サンプル
public
static
class
ClassA {
public
void
methodA {
try
{
//...
}
catch
( Error e ) {
//...
}
}
ソリューション
throws 節で宣言される例外ごとに専用の catch 節を作成します。