This page was saved using jaction on 2006-09-04 8:34:10.
Address: http://flexdocs.kr/docs/flex2/langref/TypeError.html
Title: TypeError (Flex™ 2 레퍼런스 가이드)  •  Size: 21334
Package톱 레벨
Classpublic dynamic class TypeError
InheritanceTypeError Inheritance Error Inheritance Object

TypeError 예외는, 오퍼랜드의 예기 되는 형태와 실제의 형태가 다른 경우에 슬로우 됩니다.

또, 이 예외는 다음의 상황으로 슬로우 됩니다.

View the examples

See also

is operator
instanceof operator
super statement
RegExp class
에러 이벤트에의 응답과 스테이터스


Public property
 property정의
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 InheritederrorID : int
특정의 에러 메세지에 관련지을 수 있었던 참조 번호입니다.
Error
 Inheritedmessage : String
Error object에 관련지을 수 있었던 메세지입니다.
Error
 Inheritedname : String
Error object의 이름입니다.
Error
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
Public Methods
 Methods정의
  TypeError (message:String = "")
새로운 TypeError object를 작성합니다.
TypeError
 InheritedgetStackTrace ():String
에러의 구축시에 에러의 호출 스택을 string로 돌려줍니다 (디버거 버젼의 Flash Player 전용).
Error
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
 InheritedtoString ():String
디폴트에서는 "Error" 라고 하는 string를 돌려줍니다. Error.message property가 정의되고 있는 경우는, 그 값을 돌려줍니다.
Error
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
constructor    의 상세
TypeError()constructor   
public 함수 TypeError(message:String = "")

새로운 TypeError object를 작성합니다.

Parameters
message:String (default = "") — TypeError object에 관련지을 수 있었던 메세지입니다.

See also

Examples

다음의 예는, TypeError 예외가 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);
            }
        }
    }
}






 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/TypeError.html