geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlaskow...@apache.org
Subject svn commit: r345343 - /geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ValveGBean.java
Date Thu, 17 Nov 2005 22:14:21 GMT
Author: jlaskowski
Date: Thu Nov 17 14:14:12 2005
New Revision: 345343

URL: http://svn.apache.org/viewcvs?rev=345343&view=rev
Log:
Add a more informative error msg

Modified:
    geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ValveGBean.java

Modified: geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ValveGBean.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ValveGBean.java?rev=345343&r1=345342&r2=345343&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ValveGBean.java (original)
+++ geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/ValveGBean.java Thu
Nov 17 14:14:12 2005
@@ -54,9 +54,8 @@
         
         if (nextValve != null){
             if (!(nextValve.getInternalObject() instanceof Valve)){
-                throw new IllegalArgumentException("className cannot be null.");        
       
+                throw new IllegalArgumentException("The class given as the NextValve attribute
does not wrap an object of org.apache.catalina.Valve type.");                
             }
-            
             this.nextValve = nextValve;
         } else {
             this.nextValve = null;



Mime
View raw message