<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 9, 2013 at 4:17 AM, Haster <span dir="ltr">&lt;<a href="mailto:haster2004@yandex.ru" target="_blank">haster2004@yandex.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Is there some document that represent full list of errors that could be<br>
returned by library?<br><br></blockquote><div style>I&#39;m currently working on the API documentation for this. �So the short answer is not yet.<br></div><div style><br></div><div style>That said there are places you can look that might help you: �</div>
<div style><br></div><div style>For functions that return an int (or amqp_rpc_reply_t with reply_type set to AMQP_RESPONSE_LIBRARY_EXCEPTION), the value will be of the set defined in amqp_status_enum. �</div><div style><br>
</div><div style>
Given the different platforms that rabbitmq-c its hard to describe all the things that can go wrong without duplicating all the POSIX error codes. �In certain cases (e.g., when you get an AMQP_STATUS_SOCKET_ERROR) it might be useful to examine errno or WSAGetLastError() to see what went wrong. Generally speaking though, if the library gets a socket error it doesn&#39;t understand, it assumes that the network socket is dead.</div>
<div style><br></div><div style>As for errors from the broker, you can find a list on lines 55-72 of amqp_framing.h, usually when you get one of these you also get a string describing what went wrong in addition to the error code.</div>
<div style><br></div><div style>HTH</div><div style>-Alan<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-error-list-tp27924.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-error-list-tp27924.html</a><br>
Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div><br></div></div>