module Net::SMTPError
def initialize(response, message: nil)
def initialize(response, message: nil) if response.is_a?(::Net::SMTP::Response) @response = response @message = message else @response = nil @message = message || response end end
def message
def message @message || response.message end