Class Test::Unit::Error
In: lib/test/unit/error.rb
Parent: Object

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

Methods

Included Modules

Util::BacktraceFilter

Constants

SINGLE_CHARACTER = 'E'

Attributes

exception  [R] 
test_name  [R] 

Public Class methods

Creates a new Error with the given test_name and exception.

Public Instance methods

Returns a verbose version of the error description.

Returns the message associated with the error.

Returns a brief version of the error description.

Returns a single character representation of an error.

Overridden to return long_display.

[Validate]

ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.