class Test::Unit::Error
クラスの継承リスト: Test::Unit::Error < Object < Kernel
要約
テスト時のエラーを表現するクラスです。テスト中に例外が発生した時に Test::Unit::TestCase から作られます。
特異メソッド
new(test_name, exception) -> Test::Unit::Error
-
Test::Unit::Error オブジェクトのインスタンスを生成します。
- [PARAM] test_name:
- 対応するテストメソッドの名前を指定します。
- [PARAM] exception:
- 対応する例外オブジェクトを指定します。
インスタンスメソッド
exception -> Exception
-
自身に対応する例外オブジェクトを返します。
long_display -> String
to_s -> String
-
エラーの詳細な説明を文字列で返します。
message -> String
-
発生した例外に関連するエラーメッセージを文字列で返します。
Test::Unit::Error#short_display や Test::Unit::Error#long_display で使われます。
[SEE_ALSO] Test::Unit::Error#short_display, Test::Unit::Error#long_display
short_display -> String
-
エラーの簡単な説明を文字列で返します。
single_character_display -> String
-
テストメソッド実行中に例外が発生した時に表示する 'E' を返します。
test_name -> String
-
自身に対応するテストメソッドの名前を返します。
class Test::Unit::Error