Java Generics - Sin excepción
Una clase genérica no puede extender la clase Throwable directa o indirectamente.
//The generic class Box<T> may not subclass java.lang.Throwable
class Box<T> extends Exception {}
//The generic class Box<T> may not subclass java.lang.Throwable
class Box1<T> extends Throwable {}No se permite que un método capture una instancia de un parámetro de tipo.
public static <T extends Exception, J> 
   void execute(List<J> jobs) {
      try {
         for (J job : jobs) {}
  
         // compile-time error
         //Cannot use the type parameter T in a catch block
      } catch (T e) { 
         // ...
   }
}Los parámetros de tipo están permitidos en una cláusula throws.
class Box<T extends Exception>  {
   private int t;
   public void add(int t) throws T {
      this.t = t;
   }
   public int get() {
      return t;
   }   
}