Exception: SolidQueue::Processes::ProcessExitError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SolidQueue::Processes::ProcessExitError
- Defined in:
- lib/solid_queue/processes/process_exit_error.rb
Instance Method Summary collapse
-
#initialize(status) ⇒ ProcessExitError
constructor
A new instance of ProcessExitError.
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) = "Process pid=#{status.pid} exited unexpectedly." if status.exitstatus.present? += " Exited with status #{status.exitstatus}." end if status.signaled? += " Received unhandled signal #{status.termsig}." end super() end |