class IOErrorEvent
package openfl.events
extends ErrorEvent › TextEvent › Event
Available on all platforms
An IOErrorEvent object is dispatched when an error causes input or output operations to fail.
You can check for error events that do not have any listeners by using
the debugger version of Flash Player or the AIR Debug Launcher (ADL). The
string defined by the text
parameter of the IOErrorEvent
constructor is displayed.
Static variables
staticinlineread onlyIO_ERROR:EventType<IOErrorEvent> = "ioError"
Defines the value of the type
property of an ioError
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
errorID | A reference number associated with the specific error (AIR only). |
target | The network object experiencing the input/output error. |
text | Text to be displayed as an error message. |
staticinlineread onlySTANDARD_ERROR_IO_ERROR:EventType<IOErrorEvent> = "standardErrorIoError"
Available on AIR, Android, Flash, HashLink, Linux, Neko, Windows, iOS, macOS
The standardErrorIoError
event is dispatched when an error occurs
while reading data from the standardError
stream of a NativeProcess
object.
This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event. |
errorID | The reference number associated with the specific error. |
target | The object on which the error occurred. |
text | Text to be displayed as an error message. |
staticinlineread onlySTANDARD_OUTPUT_IO_ERROR:EventType<IOErrorEvent> = "standardOutputIoError"
Available on AIR, Android, Flash, HashLink, Linux, Neko, Windows, iOS, macOS
The standardOutputIoError
event is dispatched when an error occurs
while reading data from the standardOutput
stream of a NativeProcess
object.
This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event. |
errorID | The reference number associated with the specific error. |
target | The object on which the error occurred. |
text | Text to be displayed as an error message. |
Constructor
new(type:String, bubbles:Bool = true, cancelable:Bool = false, text:String = "", id:Int = 0)
Creates an Event object that contains specific information about
ioError
events. Event objects are passed as parameters to
Event listeners.
Parameters:
type | The type of the event. Event listeners can access this
information through the inherited |
---|---|
bubbles | Determines whether the Event object participates in the
bubbling stage of the event flow. Event listeners can
access this information through the inherited
|
cancelable | Determines whether the Event object can be canceled.
Event listeners can access this information through the
inherited |
text | Text to be displayed as an error message. Event
listeners can access this information through the
|
id | A reference number to associate with the specific error (supported in Adobe AIR only). |