サンプル
public
static
class
ClassA
throws
RuntimeException {
public
void
methodA {
//...
throw new
RuntimeException();
}
}
解決策
throws 文節内で宣言される実行時例外ごとに専用の catch 文節を作成します。