summaryrefslogtreecommitdiff
path: root/include/rabbit.hrl
diff options
context:
space:
mode:
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.
%%----------------------------------------------------------------------------