Packageorg.flexunit.runner.notification
Classpublic class Failure
InheritanceFailure Inheritance Object

A Failure holds a description of the failed test and the exception that was thrown while running it. In most cases the org.flexunit.runner.Description will be of a single test. However, if problems are encountered while constructing the test (for example, if a Before method is static), it may describe something other than a single test.



Public Properties
 PropertyDefined By
  description : IDescription
[read-only]
Failure
  exception : Error
[read-only]
Failure
  message : String
[read-only] Convenience method.
Failure
  stackTrace : String
[read-only] Convenience method.
Failure
  testHeader : String
[read-only]
Failure
Public Methods
 MethodDefined By
  
Failure(description:IDescription, exception:Error)
Constructor.
Failure
Property Detail
descriptionproperty
description:IDescription  [read-only]


Implementation
    public function get description():IDescription
exceptionproperty 
exception:Error  [read-only]


Implementation
    public function get exception():Error
messageproperty 
message:String  [read-only]

Convenience method.


Implementation
    public function get message():String
stackTraceproperty 
stackTrace:String  [read-only]

Convenience method.


Implementation
    public function get stackTrace():String
testHeaderproperty 
testHeader:String  [read-only]


Implementation
    public function get testHeader():String
Constructor Detail
Failure()Constructor
public function Failure(description:IDescription, exception:Error)

Constructor. Constructs a Failure with the given description and exception.

Parameters
description:IDescription — An IDescription of the test that failed.
 
exception:Error — The exception that was thrown while running the test.