るりまサーチ

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

関連するキーワード

  1. _builtin
  2. dl

ライブラリ

キーワード

検索結果

Exception#to_str -> String (15102)

エラーメッセージをあらわす文字列を返します。

エラーメッセージをあらわす文字列を返します。

begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end

Exception#message -> String (2)

エラーメッセージをあらわす文字列を返します。

エラーメッセージをあらわす文字列を返します。

begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end

Exception#to_s -> String (2)

エラーメッセージをあらわす文字列を返します。

エラーメッセージをあらわす文字列を返します。

begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end