Packageorg.restfulx.services
Classpublic class GenericServiceErrors
ImplementsIServiceErrors
SubclassesAMFServiceErrors, JSONServiceErrors, XMLServiceErrors

Basic IServiceErrors implementation that effectively has oerrors. If you do Rx.errors = new GenericServiceErrors you will clear any previously defined errors.



Protected Properties
 PropertyDefined by
  errors : Object
error holder
GenericServiceErrors
Public Methods
 MethodDefined by
  
GenericServiceErrors
  
getFieldErrors(field:String):Array
GenericServiceErrors
Protected Methods
 MethodDefined by
  
createValidationResult(message:String):ValidationResult
Default validation result creator.
GenericServiceErrors
Property detail
errorsproperty
protected var errors:Object

error holder

Constructor detail
GenericServiceErrors()constructor
public function GenericServiceErrors()
Method detail
createValidationResult()method
protected function createValidationResult(message:String):ValidationResult

Default validation result creator. Can be overrided by specific implementations of necessary.

Parameters
message:String — message to display as error

Returns
ValidationResult — ValidationResult object
getFieldErrors()method 
public function getFieldErrors(field:String):Array

Parameters
field:String

Returns
Array

See also