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