るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.020秒)
トップページ > クエリ:message[x] > クエリ:exception[x] > クエリ:SignalException[x]

別のキーワード

  1. getoptlong error_message
  2. etc sc_message_passing
  3. etc sc_2_pbs_message
  4. mkmf message
  5. exception message

ライブラリ

クラス

キーワード

検索結果

SignalException (44024.0)

捕捉していないシグナルを受け取ったときに発生します。

...きに発生します。

実際に発生したシグナル名は、
Exception
#message から
「"SIG" + シグナル名」という形で得られます。

デフォルトの状態では、
以下のシグナルが SignalException を発生させます。

* SIGALRM
* SIGHUP
* SIGINT (※た...
...だし以下参照)
* SIGQUIT
* SIGUSR1
* SIGUSR2
* SIGTERM

なお、SIGINT シグナルを受けた場合は SignalException の下位クラスである
Interrupt が発生します。...

SignalException#signm -> String (24022.0)

self.message のエイリアスです。

...self.message のエイリアスです。

//emlist[例][ruby]{
begin
Process.kill('HUP', Process.pid)
sleep
rescue SignalException => e
puts e.signm # => SIGHUP
end
//}...

ruby 1.6 feature (42.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...def initialize}
end
}

=> ruby 1.6.5 (2001-09-19) [i586-linux]
NotImplementedError
MatchData
Exception

Numeric
MatchData
Segmentation fault

=> ruby 1.6.5 (2001-10-15) [i586-linux]
MatchDat...
...(TypeError)
from -:4

cat = Struct.new("Cat", :name, :age, :life)
a = cat.new("cat", 12, 7)
Thread.new do
abort_on_exception = true
$SAFE = 4
a.life -= 1
end.join
p a.life
=> ruby 1.6.4 (2001-06-04) [i586-linux]
6
=> ruby 1.6.4 (200...
...)

class C
def initialize
@message = 'ok'
end
attr_reader :message
end
puts C.new.message(1,2,3)

=> ruby 1.6.4 (2001-06-04) [i586-linux]
ok
=> ruby 1.6.4 (2001-08-06) [i586-linux]
-:7:in `message': wrong # of arguments(3 for 0) (ArgumentEr...