APIdock / Ruby
/
class

SignalException

ruby latest stable - Superclass: Exception

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

Files

  • error.c

AltStyle によって変換されたページ (->オリジナル) /