Wardrik. Error exception
(wardrik_protocol v0.1.0-rc.1)
Copy Markdown
An operation's failure, as the protocol's error.
%Wardrik.Error{type: :not_found, message: "No agent acme/triage."}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 acme/triage."))
#=> %{"error" => %{"type" => "not_found", "message" => "No agent acme/triage."}}
Returns an error of type with message.