Exception: Mutx::Error::Task

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mutx/error/errors.rb

Overview

Raised when there is an error related to Tasks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_name, message = nil) ⇒ Task

Returns a new instance of Task.



8
9
10
11
12
# File 'lib/mutx/error/errors.rb', line 8

def initialize(task_name, message=nil)
  @task_name = task_name
  message = message
  super(message)
end

Instance Attribute Details

#task_nameObject (readonly)

Returns the value of attribute task_name.



6
7
8
# File 'lib/mutx/error/errors.rb', line 6

def task_name
  @task_name
end