GODPAPER | All Packages | All Classes | Index | Frames No Frames |
NestedError

Package | org.spicefactory.lib.errors
Class | public class NestedError
Inheritance | NestedError Error
Subclasses | IllegalArgumentError, IllegalStateError

Base `Error` implementation that allows to specify a cause.

Public Properties

| Property | Defined By
--- | --- | ---
|  | cause : Error [read-only] The cause of this Error, may be null. | NestedError

Public Methods

| Method | Defined By
--- | --- | ---
|  | NestedError(message:String, cause:Error = null, id:int = 0) Creates a new instance. | NestedError

Property Detail

cause | property

`cause:Error` [read-only]

The cause of this Error, may be null. The cause is the original Error that caused this Error to get thrown.

Implementation
`public function get cause():Error`
Constructor Detail

NestedError | () | Constructor

`public function NestedError(message:String, cause:Error = null, id:int = 0)`

Creates a new instance.

Parameters

| `message:String` — the error message
| `cause:Error` (default = `null`)`` — the cause of this Error
| `id:int` (default = `0`)`` — an optional reference number

Thu Jan 16 2014, 01:11 PM +08:00