diff options
| author | Gordon Sim <gsim@apache.org> | 2010-05-06 09:49:45 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-05-06 09:49:45 +0000 |
| commit | a2621fc79260bfc6c60fc76bf95940a7939b9df4 (patch) | |
| tree | dff4a9eb2a68ab632dd8205077babde8f59ec192 /cpp/src/qpid/broker/SemanticState.cpp | |
| parent | 9457b9df98f91772aca5646e82902a2ff8fe5ee5 (diff) | |
| download | qpid-python-a2621fc79260bfc6c60fc76bf95940a7939b9df4.tar.gz | |
Use UnauthorizedAccessException for ACL violations rather than NotAllowedException
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SemanticState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index cb06db086a..e85d835444 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -454,7 +454,7 @@ void SemanticState::route(intrusive_ptr<Message> msg, Deliverable& strategy) { if (acl && acl->doTransferAcl()) { if (!acl->authorise(getSession().getConnection().getUserId(),acl::ACT_PUBLISH,acl::OBJ_EXCHANGE,exchangeName, msg->getRoutingKey() )) - throw NotAllowedException(QPID_MSG(userID << " cannot publish to " << + throw UnauthorizedAccessException(QPID_MSG(userID << " cannot publish to " << exchangeName << " with routing-key " << msg->getRoutingKey())); } |
