るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. cgi form
  2. cgi/html form
  3. htmlextension form
  4. cgi multipart_form
  5. cgi/html multipart_form

ライブラリ

キーワード

検索結果

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

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

...s に、
エラーメッセージ用フォーマット message_format を関連づけます。

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

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

@p...

Exception2MessageMapper#def_exception(exception_name, message_format, superclass = StandardError) -> Class (307.0)

exception_name という名前の例外クラスを定義します。

exception_name という名前の例外クラスを定義します。

@param exception_name 定義する例外クラスの名前をシンボルで指定します。

@param message_format メッセージのフォーマット。

@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。