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.1.1/lib/net/smtp.rb, line 37
def initialize(response, message: nil)
  @response = response
  @message = message
end

Public Instance Methods

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