Exception: MotherBrain::JobNotFound
- Defined in:
- lib/mb/errors.rb
Constant Summary
Constants inherited from MBError
Instance Attribute Summary collapse
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
Instance Method Summary collapse
-
#initialize(id) ⇒ JobNotFound
constructor
A new instance of JobNotFound.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(id) ⇒ JobNotFound
Returns a new instance of JobNotFound.
229 230 231 |
# File 'lib/mb/errors.rb', line 229 def initialize(id) @job_id = id end |
Instance Attribute Details
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
227 228 229 |
# File 'lib/mb/errors.rb', line 227 def job_id @job_id end |
Instance Method Details
#message ⇒ Object
233 234 235 |
# File 'lib/mb/errors.rb', line 233 def "No job with ID: '#{job_id}' found" end |