Packagecom.yahoo.webapis.answers.events
Classpublic class AnswersErrorEvent
InheritanceAnswersErrorEvent Inheritance flash.events.Event

Error Event class in response to data events from the Yahoo! Answers API.



Public Properties
 PropertyDefined by
  data : Object
Data
AnswersErrorEvent
  errorType : String
Error Type Available errorType values: "INVALID_ID" Invalid Question, Category, or User ID.
AnswersErrorEvent
  success : Boolean
True if the event is the result of a successful call, False if the call failed
AnswersErrorEvent
Public Methods
 MethodDefined by
  
AnswersErrorEvent(type:String, inData:Object, inErrorType:String)
Constructs a new FlickrResultEvent
AnswersErrorEvent
Public Constants
 ConstantDefined by
  ERROR_EVENT : String = "errorEvent"
[static] Constant for the event types.
AnswersErrorEvent
Property detail
dataproperty
data:Object  [read-write]

Data

Implementation
    public function get data():Object
    public function set data(value:Object):void
errorTypeproperty 
errorType:String  [read-write]

Error Type Available errorType values: "INVALID_ID" Invalid Question, Category, or User ID. "NONEXISTANT" You are trying to access non existing comments or answers for a Question. "API_RESPONSE" The API has responded with a Error message. Usually when search parameters are incorrent. "XML_LOADING" The XML file was unable to load or the path does not exist. "NO_RESULTS" The API call yielded no results.

Implementation
    public function get errorType():String
    public function set errorType(value:String):void
successproperty 
public var success:Boolean

True if the event is the result of a successful call, False if the call failed

Constructor detail
AnswersErrorEvent()constructor
public function AnswersErrorEvent(type:String, inData:Object, inErrorType:String)

Constructs a new FlickrResultEvent

Parameters
type:String
 
inData:Object
 
inErrorType:String
Constant detail
ERROR_EVENTconstant
public static const ERROR_EVENT:String = "errorEvent"

Constant for the event types.