るりまサーチ

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

別のキーワード

  1. logger error
  2. openssl error
  3. openssl error_string
  4. logger error?
  5. getoptlong error

ライブラリ

検索結果

Exception#exception(error_message) -> Exception (27386.0)

引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。

...成し Exception#message 属性を error_message にして返します。

Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。

@
param error_message エラーメッセージを表す文字列を指定します。

//emlist[例][ruby]{
begin...
...# ... # 何か処理
rescue => e
raise
e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}...

Exception#exception -> self (27186.0)

引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。

...成し Exception#message 属性を error_message にして返します。

Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。

@
param error_message エラーメッセージを表す文字列を指定します。

//emlist[例][ruby]{
begin...
...# ... # 何か処理
rescue => e
raise
e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}...