summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2012-02-13 21:59:54 +0000
committerRobert Gemmell <robbie@apache.org>2012-02-13 21:59:54 +0000
commit938df01f68a303b8d54167093452e0756befdf0b (patch)
treec631fb060e4663253cc743411b3c9d3b53959eed /java
parentd823973250250805d3b909434c221662760a8779 (diff)
downloadqpid-python-938df01f68a303b8d54167093452e0756befdf0b.tar.gz
QPID-3837: align the 0-10 exception message for an exchange redeclare attempt with the equivalent 0-9-1 message for clarity and consistency
I should test this first, but it is just a string so...<rolls dice> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1243709 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java b/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java
index 7e6caf7979..b61a562f39 100644
--- a/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java
+++ b/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java
@@ -465,7 +465,7 @@ public class ServerSessionDelegate extends SessionDelegate
{
if(!exchange.getTypeShortString().toString().equals(method.getType()))
{
- exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Cannot redeclare with a different exchange type");
+ exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Attempt to redeclare exchange: " + exchangeName + " of type " + exchange.getType() + " to " + method.getType() +".");
}
}
@@ -515,7 +515,7 @@ public class ServerSessionDelegate extends SessionDelegate
{
if(!exchange.getTypeShortString().toString().equals(method.getType()))
{
- exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Cannot redeclare with a different exchange type");
+ exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Attempt to redeclare exchange: " + exchangeName + " of type " + exchange.getType() + " to " + method.getType() +".");
}
}