るりまサーチ

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

別のキーワード

  1. _builtin standarderror
  2. 制御構造 standarderror
  3. standarderror _builtin
  4. fileutils standarderror
  5. rb_rescue standarderror

キーワード

検索結果

e2mmap (19.0)

例外クラスに特定のエラーメッセージ用フォーマットを関連づけるためのライブラリです。

...o
extend Exception2MessageMapper
def_e2message ExistingExceptionClass, "message..."
def_exception :NewExceptionClass, "message...", StandardError
...
end

foo = Foo.new
foo.Fail ....

2. 何度も使いたい例外クラスは、クラスの代わりにモジュールで定...
...d
extend Exception2MessageMapper
def_e2message ExistingExceptionClass, "message..."
def_exception :NewExceptionClass, "message...", StandardError
...
end
class Foo
include ErrorMod
...
end

foo = Foo.new
foo.Fail ....

3. 例外を設定したクラスのインス...
...d
extend Exception2MessageMapper
def_e2message ExistingExceptionClass, "message..."
def_exception :NewExceptionClass, "message...", StandardError
...
end
class Foo
extend Exception2MessageMapper
include ErrorMod
...
end

Foo.Fail NewExceptionClass, arg...
Foo....

debug (7.0)

Ruby デバッガです。Ruby スクリプトのソースコードデバッグに使用します。

...ithub.com/ruby/elisp にあるので、活用してください。

=== 使い方

$ ruby -rdebug foo.rb

または、Emacs から

M-x load-library rubydb3x.el
M-x rubydb

=== デバッグコマンド

以下は、デバッガで使用できるコマンド名とその用法の一覧です...
...た例外が <an Exception> のサブクラスであれば
デバッガが停止します。デフォルトのキャッチポイントは
StandardError
に設定されています。

<an Exception>として off を指定すると
例外発生時に停止しなくなります。...