Wardrik. Error exception
(wardrik_protocol v0.1.0-rc.6)
Copy Markdown
An operation's failure, as the protocol's error.
%Wardrik.Error{type: :not_found, message: "No agent agt_1."}type is one of type/0. message is for people to read.
Summary
Types
Functions
Returns error as the protocol's JSON error body.
Wardrik.Error.json(Wardrik.Error.new(:not_found, "No agent agt_1."))
#=> %{"error" => %{"type" => "not_found", "message" => "No agent agt_1."}}
Returns an error of type with message.