Raised when a signal is received.

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:

received Exception SIGHUP
Class Methods

Construct a new SignalException object. sig_name should be a known signal name.

Instance Methods

Returns a signal number.