Exception: Celluloid::SMTP::Exception
- Inherits:
-
Exception
- Object
- Exception
- Celluloid::SMTP::Exception
- Defined in:
- lib/celluloid/smtp/connection/errors.rb
Direct Known Subclasses
Error421, Error450, Error451, Error452, Error500, Error501, Error502, Error503, Error504, Error521, Error550, Error552, Error553, Error554
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(msg = nil, code, text) ⇒ Exception
constructor
A new instance of Exception.
- #result ⇒ Object
Constructor Details
#initialize(msg = nil, code, text) ⇒ Exception
Returns a new instance of Exception.
4 5 6 7 8 |
# File 'lib/celluloid/smtp/connection/errors.rb', line 4 def initialize(msg=nil, code, text) @code = code @text = text super msg end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/celluloid/smtp/connection/errors.rb', line 3 def code @code end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/celluloid/smtp/connection/errors.rb', line 3 def text @text end |
Instance Method Details
#result ⇒ Object
9 10 11 |
# File 'lib/celluloid/smtp/connection/errors.rb', line 9 def result "#{@code} #{@text}" end |