[jboss-svn-commits] JBL Code SVN: r12652 - labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/util.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jun 18 08:30:05 EDT 2007
Author: kevin.conner at jboss.com
Date: 2007-06-18 08:30:05 -0400 (Mon, 18 Jun 2007)
New Revision: 12652
Modified:
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/util/Util.java
Log:
Chain exceptions
Modified: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/util/Util.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/util/Util.java 2007-06-18 12:28:58 UTC (rev 12651)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/util/Util.java 2007-06-18 12:30:05 UTC (rev 12652)
@@ -198,9 +198,9 @@
}
catch (MarshalException ex)
{
- LOGGER.warn("Util.serialize caught MarshalException:", ex);
-
- throw new IOException(ex.toString());
+ final IOException ioe = new IOException("Util.serialize caught MarshalException:") ;
+ ioe.initCause(ex) ;
+ throw ioe ;
}
}// ________________________________
@@ -228,9 +228,9 @@
}
catch (UnmarshalException ex)
{
- LOGGER.warn("Util.deserialize caught UnmarshalException:", ex);
-
- throw new IOException(ex.toString());
+ final IOException ioe = new IOException("Util.deserialize caught UnmarshalException") ;
+ ioe.initCause(ex) ;
+ throw ioe ;
}
} // ________________________________
@@ -345,11 +345,4 @@
private static final SimpleDateFormat s_oTS = new SimpleDateFormat(
"yyyy/MM/dd hh:mm:ss.SSS");
-
- /**
- * The logger for this class.
- */
-
- private static final Logger LOGGER = Logger.getLogger(Util.class) ;
-
} // ____________________________________________________________________________
More information about the jboss-svn-commits
mailing list