Exception: Schdlr::JobFailed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task, reason = nil) ⇒ JobFailed

Returns a new instance of JobFailed.



13
14
15
16
# File 'lib/schdlr.rb', line 13

def initialize(task, reason=nil)
  @task = task
  @reason = reason
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



12
13
14
# File 'lib/schdlr.rb', line 12

def reason
  @reason
end

#taskObject

Returns the value of attribute task.



12
13
14
# File 'lib/schdlr.rb', line 12

def task
  @task
end