Exception: Fudge::Exceptions::TaskNotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/fudge/exceptions.rb

Overview

Unknown task error class

Instance Method Summary collapse

Constructor Details

#initialize(task) ⇒ TaskNotFound



17
18
19
# File 'lib/fudge/exceptions.rb', line 17

def initialize(task)
  @task = task
end

Instance Method Details

#messageObject

error message



22
23
24
# File 'lib/fudge/exceptions.rb', line 22

def message
  "No task found with name '#{@task}'"
end