Exception: SolidQueue::Processes::ProcessExitError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/solid_queue/processes/process_exit_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ ProcessExitError

Returns a new instance of ProcessExitError.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/solid_queue/processes/process_exit_error.rb', line 6

def initialize(status)
  message = "Process pid=#{status.pid} exited unexpectedly."
  if status.exitstatus.present?
    message += " Exited with status #{status.exitstatus}."
  end

  if status.signaled?
    message += " Received unhandled signal #{status.termsig}."
  end

  super(message)
end