Exception: Mailflow::SendError
- Defined in:
- lib/mailflow/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(code, error_message) ⇒ SendError
constructor
A new instance of SendError.
- #message ⇒ Object (also: #to_s)
Constructor Details
#initialize(code, error_message) ⇒ SendError
Returns a new instance of SendError.
17 18 19 20 |
# File 'lib/mailflow/error.rb', line 17 def initialize(code, ) @code = code = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
22 23 24 |
# File 'lib/mailflow/error.rb', line 22 def code @code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
22 23 24 |
# File 'lib/mailflow/error.rb', line 22 def end |
Instance Method Details
#message ⇒ Object Also known as: to_s
24 25 26 |
# File 'lib/mailflow/error.rb', line 24 def "[#{@code}] #{@error_message}" end |