[hornetq-commits] JBoss hornetq SVN: r8537 - trunk/src/main/org/hornetq/core/server/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Dec 3 14:01:40 EST 2009
Author: ataylor
Date: 2009-12-03 14:01:40 -0500 (Thu, 03 Dec 2009)
New Revision: 8537
Modified:
trunk/src/main/org/hornetq/core/server/impl/ServerSessionImpl.java
Log:
tidied exception handling
Modified: trunk/src/main/org/hornetq/core/server/impl/ServerSessionImpl.java
===================================================================
--- trunk/src/main/org/hornetq/core/server/impl/ServerSessionImpl.java 2009-12-03 18:41:20 UTC (rev 8536)
+++ trunk/src/main/org/hornetq/core/server/impl/ServerSessionImpl.java 2009-12-03 19:01:40 UTC (rev 8537)
@@ -441,14 +441,13 @@
}
catch (Exception e)
{
- log.error("Failed to create consumer", e);
-
if (e instanceof HornetQException)
{
response = new HornetQExceptionMessage((HornetQException)e);
}
else
{
+ log.error("Failed to create consumer", e);
response = new HornetQExceptionMessage(new HornetQException(HornetQException.INTERNAL_ERROR));
}
}
More information about the hornetq-commits
mailing list