summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Majkowski <majek@lshift.net>2009-09-29 13:22:11 +0100
committerMarek Majkowski <majek@lshift.net>2009-09-29 13:22:11 +0100
commit63b28edec9dfbbcbcb004babf9d1d42a47b2488e (patch)
treedef2b2c4e71342750533174d0ffa8d17f996bd7b /include
parent9354c7fdacc49a3fa9a40eea66df897feb4f1328 (diff)
parentbca6c53111013d880d88794440d8923f9c97ffe1 (diff)
downloadrabbitmq-server-git-63b28edec9dfbbcbcb004babf9d1d42a47b2488e.tar.gz
Default merged into bug 21457
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl7
-rw-r--r--include/rabbit_framing_spec.hrl2
2 files changed, 6 insertions, 3 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index d1a2f3bde1..c95ce73836 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, explanation, 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(),
+ explanation :: string(),
+ method :: atom()}).
-endif.
%%----------------------------------------------------------------------------
diff --git a/include/rabbit_framing_spec.hrl b/include/rabbit_framing_spec.hrl
index f45fa6caf4..a78c230167 100644
--- a/include/rabbit_framing_spec.hrl
+++ b/include/rabbit_framing_spec.hrl
@@ -50,8 +50,6 @@
%% TODO: make this more precise
-type(amqp_method_name() :: atom()).
-type(channel_number() :: non_neg_integer()).
-%% TODO: make this more precise
--type(amqp_error() :: {bool(), non_neg_integer(), binary()}).
-type(resource_name() :: binary()).
-type(routing_key() :: binary()).
-type(username() :: binary()).