summaryrefslogtreecommitdiff
path: root/include/rabbit.hrl
diff options
context:
space:
mode:
authorVlad Ionescu <vlad@lshift.net>2009-09-17 12:49:15 +0100
committerVlad Ionescu <vlad@lshift.net>2009-09-17 12:49:15 +0100
commit0a4693288fcb86d5f2e6bfc3a61383974aba6d3f (patch)
treecd3a9aa3d8edc4b8eeb88b2fbf697e617bc01e27 /include/rabbit.hrl
parent5d2bd75617efc5b70a96650b4b9cf93fe51224c2 (diff)
downloadrabbitmq-server-git-0a4693288fcb86d5f2e6bfc3a61383974aba6d3f.tar.gz
using #amqp_error{} instead of {amqp, ...}
Diffstat (limited to 'include/rabbit.hrl')
-rw-r--r--include/rabbit.hrl7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index d1a2f3bde1..fbe598ccbf 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -67,6 +67,8 @@
-record(ssl_socket, {tcp, ssl}).
-record(delivery, {mandatory, immediate, txn, sender, message}).
+-record(amqp_error, {name, expl = "", method = none}).
+
%%----------------------------------------------------------------------------
-ifdef(use_specs).
@@ -154,7 +156,10 @@
port :: non_neg_integer()}).
-type(not_found() :: {'error', 'not_found'}).
-type(routing_result() :: 'routed' | 'unroutable' | 'not_delivered').
-
+-type(amqp_error() ::
+ #amqp_error{name :: atom(),
+ expl :: string(),
+ method :: atom()}).
-endif.
%%----------------------------------------------------------------------------