basically the question is in the title.
I'm looking for ways to set an interface method to throw 1..N java.lang.Exception subtypes. So far I'm only able to make it work using generic type parameters in the constructor like interface IFoo<EX extends Exception> { ... } and then have a method be like void bar() throws EX;, but that requires pre-determining the number of exception types or at least to have them all have a shared superclass and throwing that in the signatures. Is there a way to do a 'variadic' throw clause in Java like interface IBaz<EX extends Exception ...> so I can do something like class Buzz implements IBaz<IOException, IllegalStateException, SecurityException> and so forth?