[jboss-cvs] JBossAS SVN: r69584 - branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 4 13:55:20 EST 2008
Author: jhowell at redhat.com
Date: 2008-02-04 13:55:20 -0500 (Mon, 04 Feb 2008)
New Revision: 69584
Modified:
branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq/SpyObjectMessage.java
Log:
ASPATCH-339 - change exception being thrown so that the serialization exception is more readable.
Modified: branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq/SpyObjectMessage.java
===================================================================
--- branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq/SpyObjectMessage.java 2008-02-04 17:45:11 UTC (rev 69583)
+++ branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq/SpyObjectMessage.java 2008-02-04 18:55:20 UTC (rev 69584)
@@ -137,7 +137,9 @@
}
catch (IOException e)
{
- throw new MessageFormatException("IOException: " + e.getMessage());
+ MessageFormatException mfe = new MessageFormatException("Object cannot be serialized: " + e.getMessage());
+ mfe.setLinkedException(e);
+ throw mfe;
}
return retVal;
}
More information about the jboss-cvs-commits
mailing list