22件ヒット
[1-22件を表示]
(0.185秒)
ライブラリ
- ビルトイン (11)
- getoptlong (11)
クラス
- Exception (11)
- GetoptLong (11)
検索結果
-
GetoptLong
# error _ message -> String | nil (27302.0) -
現在のエラーのエラーメッセージを返します。エラーが発生していな ければ、nil を返します。
...現在のエラーのエラーメッセージを返します。エラーが発生していな
ければ、nil を返します。... -
Exception
# exception(error _ message) -> Exception (6324.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
//}...