mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@669491 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8d4001ad0b
commit
73edcbc2e9
|
@ -1226,12 +1226,15 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
if (er.getException() instanceof JMSException) {
|
||||
throw (JMSException)er.getException();
|
||||
} else {
|
||||
JMSException jmsEx = null;
|
||||
try {
|
||||
throw JMSExceptionSupport.create(er.getException());
|
||||
jmsEx = JMSExceptionSupport.create(er.getException());
|
||||
}catch(Throwable e) {
|
||||
System.err.println(er.getException());
|
||||
LOG.error("Caught an exception trying to create a JMSException for " +er.getException(),e);
|
||||
}
|
||||
if(jmsEx !=null) {
|
||||
throw jmsEx;
|
||||
}
|
||||
}
|
||||
}
|
||||
return response;
|
||||
|
|
Loading…
Reference in New Issue