Exception: Nisetegami::Exceptions::UnknownActionError

Inherits:
Error
  • Object
show all
Defined in:
lib/nisetegami/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(mailer, action) ⇒ UnknownActionError

Returns a new instance of UnknownActionError.



8
9
10
# File 'lib/nisetegami/exceptions.rb', line 8

def initialize(mailer, action)
  @action = "#{mailer}##{action}"
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/nisetegami/exceptions.rb', line 11

def message
  "Action #{@action} does not exist. You should define it first."
end