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

ReferenceError 예외는, sealed 지정된 (동적이지 않다) object에 대해서 미정도리 property를 참조하려고 했을 경우에 슬로우 됩니다. 미정도리의 변수에의 참조가 있으면 ReferenceError 예외가 슬로우 되므로, 잠재적인 버그를 발견해, 어플리케이션 코드의 문제 해결을 실시하는데 도움이 됩니다.

다만, 다이나믹 클래스의 미정도리의 property를 참조할 수 있습니다. 이 경우, ReferenceError 예외는 슬로우 되지 않습니다. 상세한 것에 대하여는,dynamic 키워드를 참조해 주세요.

View the examples

See also

dynamic keyword
ActionScript 3.0 에 있어서의 에러 처리
에러 이벤트에의 응답과 스테이터스


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정의
  ReferenceError (message:String = "")
새로운 ReferenceError object를 작성합니다.
ReferenceError
 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    의 상세
ReferenceError()constructor   
public 함수 ReferenceError(message:String = "")

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

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

See also

Examples

다음의 예는,ReferenceError 예외가 try..catch 명령문(statement)내에서 어떻게 생성되어 처리되는지를 나타내고 있습니다.
package {
    import flash.display.Sprite;

    public class ReferenceErrorExample extends Sprite {

        public function ReferenceErrorExample() {
            try {
                this["someMember"] = true;
            }
            catch(e:ReferenceError) {
                trace(e);
            }
        }
    }
}






 

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

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