Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 275

Programming actionscript 3.0
Table of Contents

Advertisement

flash.error package Error classes
The flash.error package contains Error classes that are considered part of the Flash Player API.
In contrast to the Error classes just described, the flash.error package communicates errors
events that are specific to Flash Player.
Class name
EOFError
IllegalOperationError An IllegalOperationError
IOError
Description
An EOFError exception is thrown
when you attempt to read past
the end of the available data.
exception is thrown when a
method is not implemented or
the implementation doesn't cover
the current usage.
An IOError exception is thrown
when some type of I/O exception
occurs.
Notes
For example, an EOFError is thrown
when one of the read methods in the
IDataInput interface is called and
there is insufficient data to satisfy
the read request.
Examples of illegal operation error
exceptions include the following:
• A base class, such as
DisplayObjectContainer, provides
more functionality than the Stage
can support. For example, if you
attempt to get or set a mask on
the Stage (using
stage.mask
Flash Player will throw an
IllegalOperationError with the
message "The Stage class does
not implement this property or
method."
• A subclass inherits a method it
does not require and does not
want to support.
• Certain accessibility methods are
called when Flash Player is
compiled without accessibility
support.
• Authoring-only features are
invoked from a run-time version of
Flash Player.
• You attempt to set the name of an
object placed on the timeline.
You get this error, for example,
when a read-write operation is
attempted on a socket that is not
connected or that has become
disconnected.
Comparing the Error classes
),
275

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents