An error returned by the client.
kind says what failed:
:server- the broker refused a request.codeis an AMQP reply code such as404(not found),403(access refused) or406(precondition failed).:unroutable- amandatorypublish reached no queue.codeis312.:nacked- the broker rejected a publish, for example because a queue withx-overflow: reject-publishis full.codeis the broker's reason code.:closed- the connection is closed, or could not be opened.codeis the close code when the broker closed it, andnilotherwise.:timeout- the broker did not answer in time.:protocol- the broker sent something this client cannot read, or a frame would exceed the broker's size limit.:url- the connection URL is invalid.
FireMQ.Error is an exception, so the bang functions such as FireMQ.publish!/5 raise it.
Summary
Types
@type kind() ::
:server | :unroutable | :nacked | :closed | :timeout | :protocol | :url
@type t() :: %FireMQ.Error{ __exception__: true, code: non_neg_integer() | nil, kind: kind(), message: String.t() }