Exception: MailDiode::SMTPError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/engine.rb

Overview

SMTP errors (not success results)

Constant Summary collapse

MESSAGE_NOT_HANDLED =
"451 Failed: message not handled"
SYNTAX_NOOP =
"501 Syntax: NOOP"
SYNTAX_QUIT =
"501 Syntax: QUIT"
SYNTAX_HELO =
"501 Syntax: HELO"
SYNTAX_RSET =
"501 Syntax: RSET"
SYNTAX_VRFY =
"501 Syntax: VRFY"
SYNTAX_MAIL =
"501 Syntax: MAIL"
SYNTAX_RCPT =
"501 Syntax: RCPT"
SYNTAX_DATA =
"501 Syntax: DATA"
BAD_COMMAND =
'502 Error: command not implemented'
TOO_MANY_RECIPIENTS =
'552 Error: Too many recipients'
TOO_MANY_REJECTS =
'552 Error: Too many illegal recipients'
NEED_MAIL_BEFORE_RCPT =
'503 Error: need MAIL before RCPT'
NEED_RCPT_BEFORE_DATA =
'503 Error: need RCPT before DATA'
UNKNOWN_RECIPIENT =
"550 Error: No such recipient here"
MESSAGE_TOO_LONG =
"552 Error: Message too long"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ SMTPError

Returns a new instance of SMTPError.



345
346
347
# File 'lib/engine.rb', line 345

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



343
344
345
# File 'lib/engine.rb', line 343

def text
  @text
end