You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2005/12/08 00:24:51 UTC

svn commit: r354902 - /incubator/roller/trunk/src/org/roller/presentation/RollerRequest.java

Author: agilliland
Date: Wed Dec  7 15:24:45 2005
New Revision: 354902

URL: http://svn.apache.org/viewcvs?rev=354902&view=rev
Log:
making method getRollerRequest(pageContext) throw a RollerException.


Modified:
    incubator/roller/trunk/src/org/roller/presentation/RollerRequest.java

Modified: incubator/roller/trunk/src/org/roller/presentation/RollerRequest.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/RollerRequest.java?rev=354902&r1=354901&r2=354902&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/presentation/RollerRequest.java (original)
+++ incubator/roller/trunk/src/org/roller/presentation/RollerRequest.java Wed Dec  7 15:24:45 2005
@@ -415,20 +415,14 @@
      * RollerRequest if one not found in mRequest.
      */
     public static RollerRequest getRollerRequest( PageContext p )
-    {
+            throws RollerException {
+        
         HttpServletRequest r = (HttpServletRequest)p.getRequest();
         RollerRequest ret = (RollerRequest)r.getAttribute(ROLLER_REQUEST);
         if (ret == null)
         {
-            try
-            {
                 ret = new RollerRequest( p );
                 r.setAttribute( ROLLER_REQUEST, ret );
-            }
-            catch (Exception e)
-            {
-                mLogger.debug("Unable to create a RollerRequest", e);
-            }
         }
         else
         {