title: How to define an interface throwing a generic exception type?
body: <p>I wanna define an interface, like</p>
  
  <pre><code>public interface Visitor &lt;ArgType, ResultType, SelfDefinedException&gt; {
       public ResultType visitProgram(Program prog, ArgType arg) throws SelfDefinedException;
       //...
  }
  </code></pre>
  
  <p>during implementation, selfDefinedException varies. (selfDefinedException as a generic undefined for now)
    Is there a way to do this? </p>
  
  <p>Thanks</p>