qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: REJECT Exception
Date Wed, 15 Apr 2009 08:04:10 GMT
RickW wrote:
> In a publisher client I'd like to detect the condition where the
> broker rejects a message because (1) the target queue size has been
> reached and (2) I've selected the REJECT QueueSizePolicy. According
> to Red Hat's Messaging_User_Guide "The publisher of a message that
> exceeds the limit receives an exception". What exception will be
> thrown? (I assume catch(const exception& e) is too broad because
> there are other exceptions that may have to be handled differently.)

A qpid::framing::ResourceLimitExceededException (which is a subclass of 
qpid::SessionException) will be thrown. It is defined in 
qpid/framing/reply_exceptions.h.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message