| Package | 톱 레벨 |
| Class | public dynamic class TypeError |
| Inheritance | TypeError Error Object |
또, 이 예외는 다음의 상황으로 슬로우 됩니다.
is 또는 instanceof 연산자의 우변이 유효한 형태가 아닌 경우. super 키워드의 사용 방법이 부정한 경우. See also
| Methods | 정의 | ||
|---|---|---|---|
| TypeError (message:String = "")
새로운 TypeError object를 작성합니다.
| TypeError | ||
![]() | getStackTrace ():String
에러의 구축시에 에러의 호출 스택을 string로 돌려줍니다 (디버거 버젼의 Flash Player 전용).
| Error | |
![]() | hasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
| Object | |
![]() | isPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
| Object | |
![]() | propertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
| Object | |
![]() | setPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
| Object | |
![]() | toString ():String
디폴트에서는
"Error" 라고 하는 string를 돌려줍니다. Error.message property가 정의되고 있는 경우는, 그 값을 돌려줍니다. | Error | |
![]() | valueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
| Object | |
| TypeError | () | constructor |
public 함수 TypeError(message:String = "")새로운 TypeError object를 작성합니다.
Parametersmessage:String (default = "") — TypeError object에 관련지을 수 있었던 메세지입니다.
|
See also
try..catch 명령문(statement)내에서 어떻게 생성되어 처리되는지를 나타내고 있습니다.
package {
import flash.display.DisplayObject;
import flash.display.Sprite;
public class TypeErrorExample extends Sprite {
public function TypeErrorExample() {
try {
var child:Object = new Object();
addChild(DisplayObject(child));
}
catch(e:TypeError) {
trace(e);
}
}
}
}