Exemplo n.º 1
0
 public void addCheckedExceptions(String... exceptions) {
   for (String exception : exceptions) {
     exceptionsAttribute.addExceptionClass(exception);
   }
 }
Exemplo n.º 2
0
 public void addCheckedExceptions(Class<? extends Exception>... exceptions) {
   for (Class<? extends Exception> exception : exceptions) {
     exceptionsAttribute.addExceptionClass(exception.getName());
   }
 }