All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jangaroo-runtime.2.0.19.source-code.TypeError.as Maven / Gradle / Ivy

There is a newer version: 4.1.8
Show newest version
package {

/**
 * A TypeError exception is thrown when the actual type of an operand is different from the expected type.
 * 

In addition, this exception is thrown when:

*
    *
  • An actual parameter to a function or method could not be coerced to the formal parameter type.
  • *
  • A value is assigned to a variable and cannot be coerced to the variable's type.
  • *
  • The right side of the is or instanceof operator is not a valid type.
  • *
  • The super keyword is used illegally.
  • *
  • A property lookup results in more than one binding, and is therefore ambiguous.
  • *
  • A method is invoked on an incompatible object. For example, a TypeError exception is thrown if a RegExp class method is "grafted" onto a generic object and then invoked.
*

View the examples

* @see operators#is * @see operators#instanceof * @see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/statements.html#super super statement * @see RegExp * @see http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7ecf.html Responding to error events and status * */ [Native] public dynamic class TypeError extends Error { /** * Creates a new TypeError object. * @param message Contains the message associated with the TypeError object. * * @see http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7ecf.html Responding to error events and status * */ public function TypeError(message:String = "") { super(message); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy