cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: rev 47071 - cocoon/trunk/src/java/org/apache/cocoon/servlet
Date Wed, 22 Sep 2004 20:19:37 GMT
Author: vgritsenko
Date: Wed Sep 22 13:19:35 2004
New Revision: 47071

Modified:
   cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java
Log:
getMessage -> toString so that something shows up if exception has null message


Modified: cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java	Wed Sep 22 13:19:35
2004
@@ -1149,17 +1149,17 @@
 
             } catch (ConnectionResetException e) {
                 if (getLogger().isDebugEnabled()) {
-                    getLogger().debug(e.getMessage(), e);
+                    getLogger().debug(e.toString(), e);
                 } else if (getLogger().isWarnEnabled()) {
-                    getLogger().warn(e.getMessage());
+                    getLogger().warn(e.toString());
                 }
 
             } catch (IOException e) {
                 // Tomcat5 wraps SocketException into ClientAbortException which extends
IOException.
                 if (getLogger().isDebugEnabled()) {
-                    getLogger().debug(e.getMessage(), e);
+                    getLogger().debug(e.toString(), e);
                 } else if (getLogger().isWarnEnabled()) {
-                    getLogger().warn(e.getMessage());
+                    getLogger().warn(e.toString());
                 }
 
             } catch (Exception e) {
@@ -1222,13 +1222,13 @@
                 } else if (getLogger().isWarnEnabled()) {
                     getLogger().warn("SocketException while trying to close stream.");
                 }
-            // See: http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107489037219505&w=2
-            } catch (IOException ie) {
+            } catch (IOException e) {
+                // See: http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107489037219505
                 if (getLogger().isDebugEnabled()) {
-                    getLogger().debug("Cocoon got an IOException while trying to close stream.",
ie);
+                    getLogger().debug("IOException while trying to close stream.", e);
                 }
             } catch (Exception e) {
-                getLogger().error("Cocoon got an Exception while trying to close stream.",
e);
+                getLogger().error("Exception while trying to close stream.", e);
             }
         }
     }

Mime
View raw message