るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.207秒)

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. pop n_mails
  3. openssl n
  4. pop n_bytes
  5. context prompt_n=

ライブラリ

クラス

検索結果

GetoptLong#error_message -> String | nil (72907.0)

現在のエラーのエラーメッセージを返します。エラーが発生していな ければ、nil を返します。

現在のエラーのエラーメッセージを返します。エラーが発生していな
ければ、nil を返します。

Exception#exception -> self (18673.0)

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

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

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

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

//emlist[例][ruby]{
begin
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogeho...