Exception: Launch::JobError

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

Direct Known Subclasses

InvalidJob, JobAlreadyExists, UnknownJob

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job, message = nil) ⇒ JobError

Returns a new instance of JobError.



8
9
10
11
# File 'lib/launch/errors.rb', line 8

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

Instance Attribute Details

#jobObject (readonly)

Returns the value of attribute job.



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

def job
  @job
end