Packagede.flamelab.log
Classpublic class LogErrorEvent
InheritanceLogErrorEvent Inheritance flash.events.Event

Event class for log errors. As error are dispatched by an event dispatcher, there is no way to handle errors through exceptions. In Order to catch errors, you need to register for an LogErrorEvent. Some writer implementations might also be asynchron, so this is the best solution.



Public Properties
 PropertyDefined by
  id : int
Error code
LogErrorEvent
  message : Object
Error message
LogErrorEvent
Public Methods
 MethodDefined by
  
LogErrorEvent(type:String, msg:Object, code:int)
Constructor, creates a new event
LogErrorEvent
  
clone():Event
Override parants clone method.
LogErrorEvent
  
toString():String
Override parents toString method for identifying this error
LogErrorEvent
Public Constants
 ConstantDefined by
  ERROR : String = "error"
[static] Event identification
LogErrorEvent
Property detail
idproperty
public var id:int

Error code

messageproperty 
public var message:Object

Error message

Constructor detail
LogErrorEvent()constructor
public function LogErrorEvent(type:String, msg:Object, code:int)

Constructor, creates a new event

Parameters
type:String — Error identificator
 
msg:Object — Object containing the error data
 
code:int — Error code
Method detail
clone()method
public override function clone():Event

Override parants clone method. Necessary for custom events.

Returns
Event — Event New event
toString()method 
public override function toString():String

Override parents toString method for identifying this error

Returns
String — String String representation of event data
Constant detail
ERRORconstant
public static const ERROR:String = "error"

Event identification