API Documentation | All Packages | All Classes | Index | Frames No Frames |
Failure

Package | org.flexunit.runner.notification
Class | public class Failure
Inheritance | Failure 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

| Property | Defined 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

| Method | Defined By
--- | --- | ---
|  | Failure(description:IDescription, exception:Error) Constructor. | Failure

Property Detail

description | property

`description:IDescription` [read-only]

Implementation
`public function get description():IDescription`

exception | property |

`exception:Error` [read-only]

Implementation
`public function get exception():Error`

message | property |

`message:String` [read-only]

Convenience method.

Implementation
`public function get message():String`

stackTrace | property |

`stackTrace:String` [read-only]

Convenience method.

Implementation
`public function get stackTrace():String`

testHeader | property |

`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.

Thu Apr 10 2014, 08:07 AM +10:00