Exception: Mailflow::MessageNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/mailflow/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ MessageNotFound

Returns a new instance of MessageNotFound.



5
6
7
# File 'lib/mailflow/error.rb', line 5

def initialize(id)
  @id = id
end

Instance Method Details

#messageObject Also known as: to_s



9
10
11
# File 'lib/mailflow/error.rb', line 9

def message
  "No message was found that matches the provided ID. '#{@id}'"
end