るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.027秒)
トップページ > クエリ:nil[x] > クエリ:end[x] > ライブラリ:e2mmap[x]

別のキーワード

  1. _builtin nil?
  2. nilclass nil?
  3. object nil?
  4. _builtin nil
  5. object nil

モジュール

キーワード

検索結果

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

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

...在しない場合に発生します。

例:

class Foo
extend Exception2MessageMapper
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::N...

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

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

...在しない場合に発生します。

例:

class Foo
extend Exception2MessageMapper
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::N...