Class

Test::Unit::Error

Inheritance
< Object
Included Modules
Util::BacktraceFilter

Encapsulates an error in a test. Created by Test::Unit::TestCase when it rescues an exception thrown during the processing of a test.

Constants

Name   Description
SINGLE_CHARACTER = 'E'

Attributes

Name Visibility R/W Description
exception public R
test_name public R

Methods

Class

Visibility Signature
public new (test_name, exception)

Instance

Visibility Signature
public long_display ()
public message ()
public short_display ()
public single_character_display ()
public to_s ()

Class Method Detail

new(test_name, exception)

Creates a new Error with the given test_name and exception.

Instance Method Detail

long_display()

Returns a verbose version of the error description.

message()

Returns the message associated with the error.

short_display()

Returns a brief version of the error description.

single_character_display()

Returns a single character representation of an error.

to_s()

Overridden to return long_display.