[jboss-cvs] jbossmq/src/main/org/jboss/mq ...
Dimitris Andreadis
dimitris.andreadis at jboss.com
Thu Jul 20 13:08:58 EDT 2006
User: dimitris
Date: 06/07/20 13:08:58
Modified: src/main/org/jboss/mq Tag: Branch_4_0 SpyObjectMessage.java
Log:
JBAS-3296 - report in the exception message the reason the payload of an ObjectMessage cannot be serialized, link the original exception
Revision Changes Path
No revision
No revision
1.17.6.3 +4 -2 jbossmq/src/main/org/jboss/mq/SpyObjectMessage.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SpyObjectMessage.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/SpyObjectMessage.java,v
retrieving revision 1.17.6.2
retrieving revision 1.17.6.3
diff -u -b -r1.17.6.2 -r1.17.6.3
--- SpyObjectMessage.java 29 Oct 2005 05:06:26 -0000 1.17.6.2
+++ SpyObjectMessage.java 20 Jul 2006 17:08:58 -0000 1.17.6.3
@@ -45,7 +45,7 @@
*
* @author Norbert Lataille (Norbert.Lataille at m4x.org)
* @author <a href="mailto:adrian at jboss.org">Adrian Brock</a>
- * @version $Revision: 1.17.6.2 $
+ * @version $Revision: 1.17.6.3 $
*/
public class SpyObjectMessage extends SpyMessage implements ObjectMessage, Externalizable
{
@@ -101,7 +101,9 @@
}
catch (IOException e)
{
- throw new MessageFormatException("Object cannot be serialized");
+ MessageFormatException mfe = new MessageFormatException("Object cannot be serialized: " + e.getMessage());
+ mfe.setLinkedException(e);
+ throw mfe;
}
}
More information about the jboss-cvs-commits
mailing list