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.
246 247 248 |
# File 'lib/mb/errors.rb', line 246 def initialize(id) @job_id = id end |
Instance Attribute Details
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
244 245 246 |
# File 'lib/mb/errors.rb', line 244 def job_id @job_id end |
Instance Method Details
#message ⇒ Object
250 251 252 |
# File 'lib/mb/errors.rb', line 250 def "No job with ID: '#{job_id}' found" end |