次のようなジェネリック クラス内で通常の RuntimeException を作成しようとしています。
public class SomeGenericClass<SomeType> {
public class SomeInternalException extends RuntimeException {
[...]
}
[...]
}
このコードでは、 という単語でエラーが発生しRuntimeException
ますThe generic class SomeGenericClass<SomeType>.SomeInternalException may not subclass java.lang.Throwable
。
この RuntimeException は、クラスがジェネリックであることとどのような関係がありますか?