128件ヒット
[101-128件を表示]
(0.046秒)
別のキーワード
キーワード
- == (12)
- backtrace (12)
-
backtrace
_ locations (12) - cause (12)
- exception (24)
- inspect (12)
-
set
_ backtrace (12) -
to
_ s (12)
検索結果
先頭3件
-
Exception
# message -> String (16.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (16.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...トレース
情報を返します。
@param errinfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/t... -
Exception
# to _ s -> String (16.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}...