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

Package | org.flexunit.internals.runners.model
Class | public class MultipleFailureException
Inheritance | MultipleFailureException Error

The `MultipleFailureExecption` is used to store information on multiple errors that were encountered during the execution of a task. It is used to package multiple errors into a single error, which could be stored in a `ChildResult`. The `MultipleFailureExecption` initially takes an array of errors during instantiation; however, additional errors can be added using the `#addFailure()` method.

Public Properties

| Property | Defined By
--- | --- | ---
|  | failures : Array [read-only] Returns the array of all of the failures. | MultipleFailureException

Public Methods

| Method | Defined By
--- | --- | ---
|  | MultipleFailureException(errors:Array) Constructor. | MultipleFailureException
|  | addFailure(error:Error):MultipleFailureException Returns the MultipleFailureException after adding the additional failure to array of failures. | MultipleFailureException

Property Detail

failures | property

`failures:Array` [read-only]

Returns the array of all of the failures.

Implementation
`public function get failures():Array`
Constructor Detail

MultipleFailureException | () | Constructor

`public function MultipleFailureException(errors:Array)`

Constructor.

Parameters

| `errors:Array` — An initial array of encountered failures.

Method Detail

addFailure | () | method

`public function addFailure(error:Error):MultipleFailureException`

Returns the MultipleFailureException after adding the additional failure to array of failures.

Parameters

| `error:Error` — The failure to add to the array of failures.

Returns

| `MultipleFailureException`

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