Packageorg.spicefactory.lib.errors
Classpublic class NestedError
InheritanceNestedError Inheritance Error
Subclasses AbstractMethodError, ContextError, ConversionError, IllegalArgumentError, IllegalExpressionError, IllegalStateError, MethodInvocationError, ObjectDefinitionBuilderError, PropertyError, ValidationError

Base Error implementation that allows to specify a cause.



Public Properties
 PropertyDefined By
  cause : Error
[read-only] The cause of this Error, may be null.
NestedError
Public Methods
 MethodDefined By
  
NestedError(message:String, cause:Error = null, id:int = 0)
Creates a new instance.
NestedError
Property Detail
causeproperty
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