Java Generics - bez wyjątku
Klasa ogólna nie może bezpośrednio ani pośrednio rozszerzać klasy Throwable.
//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 {} 
    Metoda nie może przechwytywać wystąpienia parametru typu.
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) { 
         // ...
   }
} 
    Parametry typu są dozwolone w klauzuli throws.
class Box<T extends Exception>  {
   private int t;
   public void add(int t) throws T {
      this.t = t;
   }
   public int get() {
      return t;
   }   
}