Soap. Error exception
(Soap v2.0.0)
View Source
Anything that went wrong, other than a SOAP Fault.
reason says what. Common values:
{:invalid_param, path, message}- a param doesn't fit the schema. Nothing was sent.{:unknown_operation, name, available}{:unknown_port, name, available}{:invalid_option, key, message}- an option has the wrong shape. Nothing was sent.{:http_status, status, body}- an error status with no SOAP Fault in the reply.{:transport, reason}- no reply at all, such as a timeout or a refused connection.{:invalid_xml, message},:no_envelope,:doctype_not_allowed- a broken reply.:no_endpoint- the WSDL gives no address for this operation, and none was passed.:reply_too_large- the reply is over:max_reply_size.
When a reply arrived, status, headers and body hold it, as in Soap.Response.
Otherwise they're nil. inspect/1 leaves out the body.
Summary
Types
@type t() :: %Soap.Error{ __exception__: term(), body: binary() | nil, headers: list() | nil, reason: term(), status: pos_integer() | nil }