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

Package | org.flexunit.token
Class | public class ChildResult
Inheritance | ChildResult Object

The `ChildResult` stores an `AsyncTestToken` and a potential `Error` associated with the execution of an `IAsyncStatement`. `ChildResult`s are created in order to provided information about the execution of one particular task to another task. `ChildResult`s are used throughout much of FlexUnit4. They are used to report information to `FlexUnitCore`, runners, statements, and parts of a test when a certain activity has finished.

Public Properties

| Property | Defined By
--- | --- | ---
|  | error : Error The Error associated with the result. | ChildResult
|  | token : AsyncTestToken The AsyncTestToken associated with the result. | ChildResult

Public Methods

| Method | Defined By
--- | --- | ---
|  | ChildResult(token:AsyncTestToken, error:Error = null) Creates a new ChildResult with the provided token and erorr. | ChildResult

Property Detail

error | property

`public var error:Error`

The `Error` associated with the result.

token | property |

`public var token:AsyncTestToken`

The `AsyncTestToken` associated with the result.

Constructor Detail

ChildResult | () | Constructor

`public function ChildResult(token:AsyncTestToken, error:Error = null)`

Creates a new ChildResult with the provided `token` and `erorr`.

Parameters

| `token:AsyncTestToken` — The token to associate with this result.
| `error:Error` (default = `null`)`` — The potential `Error` that was generated from this operation. If an `Error` was not genereated, the `error` will default to `null`.

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