When the JMS binding returns an fault message for an unexpected exception include the exception class name in the message

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1240983 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
antelder 2012-02-06 11:40:03 +00:00
parent 4c5fe5e405
commit 2ef87f470a

View file

@ -134,7 +134,7 @@ public abstract class AbstractMessageProcessor implements JMSMessageProcessor {
final StringWriter sw = new StringWriter();
final PrintWriter pw = new PrintWriter(sw);
pw.print("Message = " + o.getMessage());
pw.print("Message = " + o.getClass().getName() + ": " + o.getMessage());
StackTraceElement[] stackElements = o.getStackTrace();
for (int i = 0; i < stackElements.length; i++) {
pw.print("\t>> \t at ");