るりまサーチ

最速Rubyリファレンスマニュアル検索!
351件ヒット [101-200件を表示] (0.061秒)
トップページ > クエリ:gem[x] > クエリ:Exception[x]

別のキーワード

  1. rubygems gem
  2. rubygems/gem_openssl ssl_available?
  3. rubygems/gem_openssl ensure_ssl_available
  4. gem prefix
  5. gem directories

検索結果

<< < 1 2 3 4 > >>

Gem::DependencyRemovalException (9016.0)

Gem を削除出来なかった場合に使用する例外です。

...Gem を削除出来なかった場合に使用する例外です。...

Gem.ensure_ssl_available (9012.0)

OpenSSL が使用可能でない場合は例外を発生させます。

...OpenSSL が使用可能でない場合は例外を発生させます。

@raise Gem::Exception OpenSSL が有効でない場合に発生します。...

Gem::EndOfYAMLException (9000.0)

YAML データが不正である場合に使用する例外です。

YAML データが不正である場合に使用する例外です。

Gem::FormatException (9000.0)

フォーマットに関する例外です。

フォーマットに関する例外です。

Gem::InvalidSpecificationException (9000.0)

不正な gemspec に関する例外です。

...不正な gemspec に関する例外です。...

絞り込み条件を変える

Gem::RemoteSourceException (9000.0)

HTTP 経由でネットワークにアクセス出来ない場合に使用する例外です。

HTTP 経由でネットワークにアクセス出来ない場合に使用する例外です。

Gem::SystemExitException (9000.0)

何らかの理由でコマンドを実行出来ない場合に使用する例外です。

何らかの理由でコマンドを実行出来ない場合に使用する例外です。

Exception2MessageMapper#def_e2message(exception_class, message_format) -> Class (6141.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 を返します。...

Exception2MessageMapper.def_e2message(klass, exception_class, message_format) -> Class (6129.0)

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

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

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

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

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

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

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

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

...m exception_class 例外クラス。

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

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

例:

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

def foo
Raise NewExceptionClass, 1, 2, 3
end
end

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

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

絞り込み条件を変える

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

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

...m exception_class 例外クラス。

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

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

例:

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

def foo
Raise NewExceptionClass, 1, 2, 3
end
end

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

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