mirror of
https://github.com/apache/commons-lang.git
synced 2025-03-08 17:20:01 +00:00
Use IllegalArgumentException llke the reset of the method.
This commit is contained in:
parent
f813045283
commit
07f4eaaddd
@ -56,7 +56,7 @@ public static <L> void addEventListener(final Object eventSource, final Class<L>
|
|||||||
+ " does not have an accessible add" + listenerType.getSimpleName ()
|
+ " does not have an accessible add" + listenerType.getSimpleName ()
|
||||||
+ " method which takes a parameter of type " + listenerType.getName() + ".");
|
+ " method which takes a parameter of type " + listenerType.getName() + ".");
|
||||||
} catch (final InvocationTargetException e) {
|
} catch (final InvocationTargetException e) {
|
||||||
throw new RuntimeException("Unable to add listener.", e.getCause());
|
throw new IllegalArgumentException("Unable to add listener.", e.getCause());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user