別のキーワード
ライブラリ
- English (11)
- ビルトイン (279)
-
minitest
/ unit (2) - optparse (22)
- rake (22)
-
rubygems
/ commands / which _ command (11) -
rubygems
/ config _ file (33) -
webrick
/ httpresponse (11)
クラス
- Exception (44)
- Fiber (15)
-
Gem
:: ConfigFile (33) -
OptionParser
:: ParseError (22) -
Rake
:: Application (11) - Thread (33)
-
Thread
:: Backtrace :: Location (77) -
WEBrick
:: HTTPResponse (11)
モジュール
- Kernel (110)
- MiniTest (1)
-
MiniTest
:: Assertions (1) - Rake (11)
キーワード
-
$ @ (11) -
$ ERROR _ INFO (11) - == (11)
-
DEFAULT
_ BACKTRACE (11) - Location (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Rubyの起動 (3)
- Ruby用語集 (11)
- WhichCommand (11)
-
absolute
_ path (11) - application= (11)
- backtrace= (11)
-
backtrace
_ locations (33) -
base
_ label (11) -
caller
_ locations (22) - fail (33)
-
filter
_ backtrace (12) -
get
_ backtrace (11) - inspect (11)
- label (11)
- lineno (11)
-
make
_ backtrace (11) - path (11)
- raise (48)
-
rb
_ backtrace (11) - rubygems (11)
-
rubygems
/ commands / build _ command (11) -
rubygems
/ commands / cert _ command (11) -
rubygems
/ commands / check _ command (11) -
rubygems
/ commands / cleanup _ command (11) -
rubygems
/ commands / contents _ command (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ commands / environment _ command (11) -
rubygems
/ commands / fetch _ command (11) -
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / help _ command (11) -
rubygems
/ commands / install _ command (11) -
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / mirror _ command (11) -
rubygems
/ commands / outdated _ command (11) -
rubygems
/ commands / pristine _ command (11) -
rubygems
/ commands / query _ command (11) -
rubygems
/ commands / rdoc _ command (11) -
rubygems
/ commands / search _ command (11) -
rubygems
/ commands / server _ command (11) -
rubygems
/ commands / sources _ command (11) -
rubygems
/ commands / specification _ command (11) -
rubygems
/ commands / uninstall _ command (11) -
rubygems
/ commands / unpack _ command (11) -
set
_ backtrace (33) -
set
_ error (11) - skip (1)
-
to
_ s (11)
検索結果
先頭5件
-
Kernel
. # raise(error _ type , message = nil , backtrace = caller(0) , cause: $ !) -> () (108.0) -
例外を発生させます。 発生した例外は変数 $! に格納されます。また例外が 発生した時のスタックトレースは変数 $@ に格納され ます。発生した例外は rescue 節で捕捉できます。
...スまたは例外クラスのインスタンスで指定します。
@param message 例外のメッセージとなる文字列です。
@param backtrace 例外発生時のスタックトレースで、Kernel.#caller の戻り値と同じ
形式で指定しなければいけません。
@param cau... -
Fiber
# raise(exception , message = nil , backtrace = nil) -> object (107.0) -
selfが表すファイバーが最後に Fiber.yield を呼んだ場所で例外を発生させます。
...指定できます。
@param message 例外のメッセージとなる文字列です。
@param exception 発生させる例外です。
@param backtrace 例外発生時のスタックトレースです。文字列の配列で指定します。
//emlist[例][ruby]{
f = Fiber.new { Fiber.yield }
f.... -
MiniTest
:: Assertions # skip(message = nil , backtrace = caller) (107.0) -
このメソッドを呼び出したテストメソッドをスキップします。
...このメソッドを呼び出したテストメソッドをスキップします。
@param message メッセージを指定します。
@param backtrace 例外発生時のスタックトレースで、Kernel.#caller の戻り値と同じ
形式で指定しなければいけませ... -
WEBrick
:: HTTPResponse # set _ error(status , backtrace = false) -> () (107.0) -
自身の内容(エンティティボディ)を指定された status のエラーページにします。
...ティボディ)を指定された status のエラーページにします。
@param status WEBrick::HTTPStatus::Status のサブクラスか一般の例外クラスを指定します。
@param backtrace true を指定した場合バックトレースをエラーページに出力します。... -
NEWS for Ruby 3
. 0 . 0 (42.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...tty, the `--help`
option shows the help message via the pager designated by the value.
16754
=== `--backtrace-limit` option
The `--backtrace-limit` option limits the maximum length of a backtrace.
8661
== Core classes updates
Outstanding ones only.
* Array
* The following methods now ret......-blocking execution contexts. 16786
* Fiber#blocking? tells whether the fiber is non-blocking. 16786
* Fiber#backtrace and Fiber#backtrace_locations provide per-fiber backtrace. 16815
* The limitation of Fiber#transfer is relaxed. 17221
* GC
* GC.auto_compact= and GC.auto_compact h......ow removed just as they are for methods not using `ruby2_keywords`.
* When an exception is caught in the default handler, the error message and backtrace are printed in order from the innermost. 8661
* Accessing an uninitialized instance variable no longer emits a warning in verbose mode. 17055... -
Exception
# ==(other) -> bool (28.0) -
自身と指定された other のクラスが同じであり、 message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。
...自身と指定された other のクラスが同じであり、
message と backtrace が == メソッドで比較して
等しい場合に true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。......ge }
# => ["2 is not long month", "2 is not long month", "4 is not long month"]
# class, message, backtrace が同一のため true になる
p results[0] == results[1] # => true
# class, backtrace が同一だが、message がことなるため false になる
p results[0] == results[2] # =... -
NEWS for Ruby 2
. 0 . 0 (24.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...handling of exceptions
* 追加: Thread#backtrace_locations Kernel#caller_locations に似た情報を返します
* 新規クラス: Thread::Backtrace::Location to hold backtrace location
information. These are returned by Thread#backtrace_locations and
Kernel#caller_locations... -
NEWS for Ruby 3
. 1 . 0 (18.0) -
NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...thread_id が追加されました。 17853
* Thread::Backtrace
* 新規メソッド
* --backtrace-limit コマンドラインオプションで設定したバックトレースの長さを制限する値を返す Thread::Backtrace.limit が追加されました。 17479
* Thread::Qu... -
Ruby用語集 (18.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...また、例外オブジェクトは例外が発生した時点までのスタックトレースを保持しており、
Exception#backtrace や Exception#backtrace_locations で
取り出すことができる。
: スーパークラス
: superclass
クラス B がクラス A のサブクラ......その配列から算出される結果を固定することはできない。
: 派生クラス
=サブクラス
: バックトレース
: backtrace
=スタックトレース
: ハッシュ
: hash
キーに値を対応させたコレクション。言語によっては連想配列と... -
Kernel
$ $ @ -> [String] | nil (12.0) -
最後に例外が発生した時のバックトレースを表す配列です。 Kernel.#raise によって設定されます。
...です。
$@ へ値を代入するときは、$! が nil であってはいけません。
$@ の値は、$!.backtrace の値と同じです。
また、$@ への代入は $!.set_backtrace 呼び出しと同じです。
文字列の配列でも nil でもない値を代入しようとすると、... -
Rake
. application=(app) (12.0) -
現在の Rake アプリケーションをセットします。
...ask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=false, load_system=false, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=n... -
Rake
:: Application # options -> OpenStruct (12.0) -
コマンドラインで与えられたアプリケーションのオプションを返します。
...ask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=false, load_system=false, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=n... -
Rubyの起動 (12.0)
-
Rubyの起動 * cmd_option * shebang
...ョンは意味を持ちません。
: --backtrace-limit=num
バックトレースの最大行数を指定します。
//emlist{
# test.rb
def f6 = raise
def f5 = f6
def f4 = f5
def f3 = f4
def f2 = f3
def f1 = f2
f1
//}
//emlist{
% ruby --backtrace-limit=3 test.rb
test.rb:1:in `f6': unhandled...