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