This page was saved using jaction on 2006-09-04 8:33:46.
Address: http://flexdocs.kr/docs/flex2/langref/flash/errors/IllegalOperationError.html
Title: flash.errors.IllegalOperationError (Flex™ 2 레퍼런스 가이드)  •  Size: 22265
Packageflash.errors
Classpublic dynamic class IllegalOperationError
InheritanceIllegalOperationError Inheritance Error Inheritance Object

IllegalOperationError 예외는, Methods가 Implements되어 있지 않은지, 사용 방법으로 Implements이 대응하고 있지 않는 경우에 슬로우 됩니다. 예를 들어, 다음과 같은 상황으로 무효인 조작 에러의 예외가 발생합니다.

View the examples

See also

flash.error 패키지 Error 클래스


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

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

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

다음의 예는,IllegalOperationError 핸들러의 사용을 나타내고 있습니다.
package {
    import flash.display.DisplayObject;
    import flash.display.Sprite;
    import flash.errors.IllegalOperationError;

    public class IllegalOperationErrorExample extends Sprite {
        public function IllegalOperationErrorExample() {
            var child:Sprite = new Sprite();
            try {
                addChild(child);
            }
            catch(e:IllegalOperationError) {
                trace(e);
            }
        }

        public override function addChild(child:DisplayObject) :DisplayObject {
            throw new IllegalOperationError("addChild cannot be performed on the IllegalOperationErrorExample class");
        }
    }
}






 

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

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