View Source Mua.TransportError exception (Mua v0.2.4)

Represents an error with the transport used by an SMTP connection.

Contains the following fields:

  • :reason - a term representing the error reason. The value of this field can be:

    • :timeout - if there's a timeout in interacting with the socket.

    • :closed - if the connection has been closed.

    • :inet.posix/0 - if there's any other error with the socket, such as :econnrefused or :nxdomain.

    • :ssl.error_alert/0 - if there's an SSL error.

Summary

Types

@type t() :: %Mua.TransportError{
  __exception__: true,
  reason: :timeout | :closed | :inet.posix() | :ssl.error_alert()
}

Functions

Link to this function

message(transport_error)

View Source

Callback implementation for Exception.message/1.