commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r588357 - /commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/IntrospectorBase.java
Date Thu, 25 Oct 2007 21:09:01 GMT
Author: dion
Date: Thu Oct 25 14:09:01 2007
New Revision: 588357

URL: http://svn.apache.org/viewvc?rev=588357&view=rev
Log:
remove throws exception

Modified:
    commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/IntrospectorBase.java

Modified: commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/IntrospectorBase.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/IntrospectorBase.java?rev=588357&r1=588356&r2=588357&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/IntrospectorBase.java
(original)
+++ commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/IntrospectorBase.java
Thu Oct 25 14:09:01 2007
@@ -17,12 +17,11 @@
 
 package org.apache.commons.jexl.util.introspection;
 
-import java.util.Map;
-import java.util.Set;
+import java.lang.reflect.Method;
 import java.util.HashMap;
 import java.util.HashSet;
-
-import java.lang.reflect.Method;
+import java.util.Map;
+import java.util.Set;
 
 /**
  * This basic function of this class is to return a Method object for a
@@ -74,11 +73,11 @@
      *            parameters
      * 
      * @return The desired Method object.
-     * @throws Exception on any logical error.
+     * @throws MethodMap.AmbiguousException when an ambiguous method declaration is found.
      */
-    public Method getMethod(Class c, String name, Object[] params) throws Exception {
+    public Method getMethod(Class c, String name, Object[] params) throws MethodMap.AmbiguousException
{
         if (c == null) {
-            throw new Exception("Introspector.getMethod(): Class method key was null: " +
name);
+            throw new IllegalArgumentException("Introspector.getMethod(): Class method key
was null: " + name);
         }
 
         ClassMap classMap = null;



Mime
View raw message