るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. kernel p
  5. kernel $-p

ライブラリ

クラス

モジュール

検索結果

Exception#exception(error_message) -> Exception (36450.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 (36250.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
//}...

Exception2MessageMapper#def_e2message(exception_class, message_format) -> Class (6254.0)

すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。

...に存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。

このフォーマットは Exception2MessageMapper#Raise,
Exception
2MessageMapper#Fail で使用します。

@param exception_class メッセージを登録...
...する例外クラスを指定します。

@param message_format メッセージのフォーマットを指定します。
Kernel
.#sprintf のフォーマット文字列と同じ形式を使用できます。

@return exception_class を返します。...