module Net::SMTPError

Module mixed in to all SMTP error classes

Attributes

response[R]

This class is a module for backward compatibility. In later release, this module becomes a class.

Public Class Methods

new(response, message: nil) click to toggle source
# File net-smtp-0.4.0/lib/net/smtp.rb, line 33
def initialize(response, message: nil)
  if response.is_a?(::Net::SMTP::Response)
    @response = response
    @message = message
  else
    @response = nil
    @message = message || response
  end
end

Public Instance Methods

message() click to toggle source
# File net-smtp-0.4.0/lib/net/smtp.rb, line 43
def message
  @message || response.message
end