Exception: Process::Naf::Application::TerminationRequest

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/process/naf/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job, reason) ⇒ TerminationRequest

Returns a new instance of TerminationRequest.



7
8
9
10
11
# File 'app/models/process/naf/application.rb', line 7

def initialize(job, reason)
  @job = job
  @reason = reason
  super("Requested to terminate by Naf: #{reason}")
end

Instance Attribute Details

#jobObject (readonly)

Returns the value of attribute job.



6
7
8
# File 'app/models/process/naf/application.rb', line 6

def job
  @job
end

#reasonObject (readonly)

Returns the value of attribute reason.



6
7
8
# File 'app/models/process/naf/application.rb', line 6

def reason
  @reason
end