An attempt to use generics with any class that extends Throwable produces an error saying "Generic class may not extend 'java.lang.Throwable'".
Sample code:
public class GenericException<T> extends Exception { } // Compilation Error
I am not able to understand why generics cannot be used inside classes that extend Throwable. Could someone explain?