Exception: AppMail::SendError
- Defined in:
- lib/app_mail/error.rb
Overview
Raised when a message cannot be found by its ID
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
- #to_s ⇒ Object
Constructor Details
#initialize(code, error_message) ⇒ SendError
Returns a new instance of SendError.
30 31 32 33 |
# File 'lib/app_mail/error.rb', line 30 def initialize(code, ) @code = code @error_message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
35 36 37 |
# File 'lib/app_mail/error.rb', line 35 def code @code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
36 37 38 |
# File 'lib/app_mail/error.rb', line 36 def @error_message end |
Instance Method Details
#message ⇒ Object
38 39 40 |
# File 'lib/app_mail/error.rb', line 38 def "[#{@code}] #{@error_message}" end |
#to_s ⇒ Object
42 43 44 |
# File 'lib/app_mail/error.rb', line 42 def to_s end |