git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@669491 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-06-19 14:00:22 +00:00
parent 8d4001ad0b
commit 73edcbc2e9
1 changed files with 5 additions and 2 deletions

View File

@ -1226,12 +1226,15 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
if (er.getException() instanceof JMSException) { if (er.getException() instanceof JMSException) {
throw (JMSException)er.getException(); throw (JMSException)er.getException();
} else { } else {
JMSException jmsEx = null;
try { try {
throw JMSExceptionSupport.create(er.getException()); jmsEx = JMSExceptionSupport.create(er.getException());
}catch(Throwable e) { }catch(Throwable e) {
System.err.println(er.getException());
LOG.error("Caught an exception trying to create a JMSException for " +er.getException(),e); LOG.error("Caught an exception trying to create a JMSException for " +er.getException(),e);
} }
if(jmsEx !=null) {
throw jmsEx;
}
} }
} }
return response; return response;