Skip to content
On this page
class · Ruby 4.0

SignalException

< Exception 1 instance methods 1 class methods

Raised when a signal is received.

Example
begin
  Process.kill('HUP',Process.pid)
  sleep # wait for receiver to handle signal sent by Process.kill
rescue SignalException => e
  puts "received Exception #{e}"
end

produces:

Example
received Exception SIGHUP

Class methods 1

Instance methods 1