public void addCheckedExceptions(String... exceptions) { for (String exception : exceptions) { exceptionsAttribute.addExceptionClass(exception); } }
public void addCheckedExceptions(Class<? extends Exception>... exceptions) { for (Class<? extends Exception> exception : exceptions) { exceptionsAttribute.addExceptionClass(exception.getName()); } }