Exception: MidiSmtpServer::SmtpdException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- MidiSmtpServer::SmtpdException
- Defined in:
- lib/midi-smtp-server/exceptions.rb
Overview
generic smtp server exception class
Direct Known Subclasses
Smtpd421Exception, Smtpd432Exception, Smtpd450Exception, Smtpd451Exception, Smtpd452Exception, Smtpd454Exception, Smtpd500CrLfSequenceException, Smtpd500Exception, Smtpd500PipeliningException, Smtpd501Exception, Smtpd502Exception, Smtpd503Exception, Smtpd504Exception, Smtpd521Exception, Smtpd530Exception, Smtpd534Exception, Smtpd535Exception, Smtpd538Exception, Smtpd550Exception, Smtpd552Exception, Smtpd553Exception, Smtpd554Exception, Tls454Exception, Tls530Exception
Instance Attribute Summary collapse
-
#smtpd_return_code ⇒ Object
readonly
Returns the value of attribute smtpd_return_code.
-
#smtpd_return_text ⇒ Object
readonly
Returns the value of attribute smtpd_return_text.
Instance Method Summary collapse
-
#initialize(msg, smtpd_return_code, smtpd_return_text) ⇒ SmtpdException
constructor
A new instance of SmtpdException.
- #smtpd_result ⇒ Object
Constructor Details
#initialize(msg, smtpd_return_code, smtpd_return_text) ⇒ SmtpdException
Returns a new instance of SmtpdException.
36 37 38 39 40 41 42 |
# File 'lib/midi-smtp-server/exceptions.rb', line 36 def initialize(msg, smtpd_return_code, smtpd_return_text) # save reference for smtp dialog @smtpd_return_code = smtpd_return_code @smtpd_return_text = smtpd_return_text # call inherited constructor super msg end |
Instance Attribute Details
#smtpd_return_code ⇒ Object (readonly)
Returns the value of attribute smtpd_return_code.
33 34 35 |
# File 'lib/midi-smtp-server/exceptions.rb', line 33 def smtpd_return_code @smtpd_return_code end |
#smtpd_return_text ⇒ Object (readonly)
Returns the value of attribute smtpd_return_text.
34 35 36 |
# File 'lib/midi-smtp-server/exceptions.rb', line 34 def smtpd_return_text @smtpd_return_text end |
Instance Method Details
#smtpd_result ⇒ Object
44 45 46 |
# File 'lib/midi-smtp-server/exceptions.rb', line 44 def smtpd_result return "#{@smtpd_return_code} #{@smtpd_return_text}" end |