You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2006/11/19 20:27:22 UTC
svn commit: r476891 -
/jakarta/velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/IntrospectorBase.java
Author: henning
Date: Sun Nov 19 11:27:22 2006
New Revision: 476891
URL: http://svn.apache.org/viewvc?view=rev&rev=476891
Log:
Make error messages a bit more meaningful. Also throw exception when null is passed for params.
Modified:
jakarta/velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/IntrospectorBase.java
Modified: jakarta/velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/IntrospectorBase.java
URL: http://svn.apache.org/viewvc/jakarta/velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/IntrospectorBase.java?view=diff&rev=476891&r1=476890&r2=476891
==============================================================================
--- jakarta/velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/IntrospectorBase.java (original)
+++ jakarta/velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/IntrospectorBase.java Sun Nov 19 11:27:22 2006
@@ -87,8 +87,12 @@
{
if (c == null)
{
- throw new IllegalArgumentException (
- "Introspector.getMethod(): Class method key was null: " + name);
+ throw new IllegalArgumentException ("class object is null!");
+ }
+
+ if (params == null)
+ {
+ throw new IllegalArgumentException("params object is null!");
}
ClassMap classMap = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org