Exception: Schdlr::JobFailed
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(task, reason = nil) ⇒ JobFailed
constructor
A new instance of JobFailed.
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
#reason ⇒ Object
Returns the value of attribute reason.
12 13 14 |
# File 'lib/schdlr.rb', line 12 def reason @reason end |
#task ⇒ Object
Returns the value of attribute task.
12 13 14 |
# File 'lib/schdlr.rb', line 12 def task @task end |