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.3.3/lib/net/smtp.rb, line 39
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.3.3/lib/net/smtp.rb, line 49
def message
  @message || response.message
end