Skip to content
Permalink
Browse files
Use IllegalArgumentException llke the reset of the method.
  • Loading branch information
garydgregory committed May 15, 2022
1 parent f813045 commit 07f4eaadddacf7f648031521d7c20139c756ca84
Showing 1 changed file with 1 addition and 1 deletion.
@@ -56,7 +56,7 @@ public static <L> void addEventListener(final Object eventSource, final Class<L>
+ " 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());
}
}

0 comments on commit 07f4eaa

Please sign in to comment.