Exception: Ace::Review::Errors::TaskNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/ace/review/errors.rb

Overview

Raised when ace-task cannot find task

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_ref) ⇒ TaskNotFoundError

Returns a new instance of TaskNotFoundError.



107
108
109
110
111
112
# File 'lib/ace/review/errors.rb', line 107

def initialize(task_ref)
  @task_ref = task_ref
  message = "Task '#{task_ref}' not found.\n"
  message += "Run 'ace-task show #{task_ref}' for details."
  super(message)
end

Instance Attribute Details

#task_refObject (readonly)

Returns the value of attribute task_ref.



105
106
107
# File 'lib/ace/review/errors.rb', line 105

def task_ref
  @task_ref
end