[cvs] expresso commit by lhamel: add wording of exception

JCorporate Ltd jcorp at jcorp2.servlets.net
Mon Nov 1 00:05:28 PST 2004


Log Message:
-----------
add wording of exception

Modified Files:
--------------
    expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/registry:
        RequestRegistry.java

Revision Data
-------------
Index: RequestRegistry.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/registry/RequestRegistry.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/registry/RequestRegistry.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/registry/RequestRegistry.java -u -r1.2 -r1.3
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/core/registry/RequestRegistry.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/core/registry/RequestRegistry.java
@@ -63,9 +63,10 @@
 
 package com.jcorporate.expresso.core.registry;
 
-import java.util.Stack;
 import com.jcorporate.expresso.core.security.User;
 
+import java.util.Stack;
+
  /**
   * The request registry provides several useful utility functions that
   * allow isolation of Expresso specifics away from the domain model where
@@ -141,14 +142,11 @@
     protected static RequestRegistry getInstance() throws IllegalStateException {
         RequestRegistry requestRegistry = (RequestRegistry)threadLocal.get();
         if (requestRegistry == null) {
-            throw new IllegalStateException("No request registry has been"
-                                            +
-                                            " associated with this thread yet."
-                                            + " if you are running inside a "
-                                            +
-                                            "servlet engine, you will need to "
-                                            + "install the appropriate "
-                +"RequestRegistryFilter. as a servlet filter");
+            throw new IllegalStateException(
+                "No request registry has been associated with this thread yet."
+                + " If you are running inside a servlet engine, please add "
+                +"RequestRegistryFilter as a servlet filter within web.xml.  See the " +
+                    " web.xml in the Expresso source tree as an example.");
         }
         return requestRegistry;
     }


More information about the cvs mailing list