Exception: Postal::MessageNotFound
- Defined in:
- lib/postal/error.rb
Overview
Raised when a message cannot be found by its ID
Instance Method Summary collapse
-
#initialize(id) ⇒ MessageNotFound
constructor
A new instance of MessageNotFound.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(id) ⇒ MessageNotFound
Returns a new instance of MessageNotFound.
13 14 15 |
# File 'lib/postal/error.rb', line 13 def initialize(id) @id = id end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/postal/error.rb', line 17 def "No message found matching ID '#{@id}'" end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/postal/error.rb', line 21 def to_s end |