るりまサーチ

最速Rubyリファレンスマニュアル検索!
76件ヒット [1-76件を表示] (0.155秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:IO[x] > クエリ:Fail[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

モジュール

キーワード

検索結果

Exception2MessageMapper#Fail(exception_class = nil, *rest) -> () (24401.0)

登録されている情報を使用して、例外を発生させます。

...@param exception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。

例:

class Foo
extend Exception2Me...
...pper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>

def foo
R
aise NewExceptionClass, 1, 2, 3
end
end

Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。

Foo.Rai...
...se Foo::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。...

Exception2MessageMapper.Fail(klass = E2MM, exception_class = nil, *rest) -> () (24401.0)

登録されている情報を使用して、例外を発生させます。

...て、例外を発生させます。

@param klass 一階層上となるクラス名を指定します。

@param exception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応す...

Sync_m::LockModeFailer.Fail(*options) -> () (24301.0)

自身に定義されているメッセージをセットして例外を発生させます。

自身に定義されているメッセージをセットして例外を発生させます。

Sync_m::Err.Fail(*options) -> () (21301.0)

自身に定義されているメッセージをセットして例外を発生させます。

自身に定義されているメッセージをセットして例外を発生させます。

Sync_m::UnknownLocker.Fail(*options) -> () (21301.0)

自身に定義されているメッセージをセットして例外を発生させます。

自身に定義されているメッセージをセットして例外を発生させます。

絞り込み条件を変える

Exception2MessageMapper#fail(exception_class = nil, *rest) -> () (12401.0)

登録されている情報を使用して、例外を発生させます。

...録されている情報を使用して、例外を発生させます。

@param exception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しな...

Gem::Command#show_lookup_failure(gem_name, version, errors = nil) -> () (12400.0)

Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。

...た場合、メッセージを表示するために使用するメソッドです。

@param gem_name Gem の名前を指定します。

@param version Gem のバージョンを指定します。

@param errors Gem が見つからなかった理由を表すオブジェクトを格納した配列を...

Exception2MessageMapper#Raise(exception_class = nil, *rest) -> () (12301.0)

登録されている情報を使用して、例外を発生させます。

...@param exception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。

例:

class Foo
extend Exception2Me...
...pper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>

def foo
R
aise NewExceptionClass, 1, 2, 3
end
end

Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。

Foo.Rai...
...se Foo::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。...

Exception2MessageMapper.Raise(klass = E2MM, exception_class = nil, *rest) -> () (12301.0)

登録されている情報を使用して、例外を発生させます。

...て、例外を発生させます。

@param klass 一階層上となるクラス名を指定します。

@param exception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応す...

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

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

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

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

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

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

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

絞り込み条件を変える

CSV.new(data, options = Hash.new) -> CSV (270.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...読み込んだり、書き出したりするために
String か IO のインスタンスをラップします。

ラップされた文字列の先頭から読み込むことになります。
文字列に追記したい場合は CSV.generate を使用してください。
他の位置から処理...
...or the stream is only available for output, the default
$INPUT_RECORD_SEPARATOR ($/) is used. Obviously,
discovery takes a little time. Set manually if speed is important. Also
note that IO objects should be opened in binary mode on Windows if this
feature will be used as the line-e...
...first line ending beyond this
size.) If a quote cannot be found within the limit CSV will raise a
MalformedCSVError, assuming the data is faulty. You can use this limit to
prevent what are effectively DoS attacks on the parser. However, this
limit can cause a legitimate parse to fail...