tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r905343 - /tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java
Date Mon, 01 Feb 2010 17:29:43 GMT
Author: markt
Date: Mon Feb  1 17:29:42 2010
New Revision: 905343

URL: http://svn.apache.org/viewvc?rev=905343&view=rev
Log:
Don't swallow the exception

Modified:
    tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java?rev=905343&r1=905342&r2=905343&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java Mon Feb  1 17:29:42 2010
@@ -479,8 +479,11 @@
             name = new ObjectName(sb.toString());
             return (name);
         } catch (Exception e) {
-            throw new MalformedObjectNameException
-                ("Cannot create object name for " + connector+e);
+            MalformedObjectNameException mone =
+                new MalformedObjectNameException
+                ("Cannot create object name for " + connector);
+            mone.initCause(e);
+            throw mone;
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message