るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.148秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:r[x] > クエリ:ruby[x] > クエリ:exception[x] > クエリ:to_s[x] > クラス:Exception[x]

別のキーワード

  1. _builtin exception
  2. exception exception
  3. bigdecimal exception_nan
  4. bigdecimal exception_all
  5. thread abort_on_exception

ライブラリ

検索結果

Exception#to_s -> String (24209.0)

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

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

//emlist[例][ruby]{
begin
1 + nil
r
escue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}...

Exception#message -> String (9109.0)

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

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

//emlist[例][ruby]{
begin
1 + nil
r
escue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}...