Use IllegalArgumentException llke the reset of the method.

This commit is contained in:
Gary Gregory 2022-05-15 17:01:59 -04:00
parent f813045283
commit 07f4eaaddd
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class EventUtils {
+ " does not have an accessible add" + listenerType.getSimpleName ()
+ " method which takes a parameter of type " + listenerType.getName() + ".");
} catch (final InvocationTargetException e) {
throw new RuntimeException("Unable to add listener.", e.getCause());
throw new IllegalArgumentException("Unable to add listener.", e.getCause());
}
}