2012-03-30 3 views

답변

4

내가 아는 유일한 방법은 @throws ASDocs 태그를 사용하는 것입니다. 예 :

@throws SecurityError Local untrusted SWFs may not communicate with the Internet. 

자세한 내용은이 링크를 참조하십시오 : http://help.adobe.com/en_US/flex/using/WSd0ded3821e0d52fe1e63e3d11c2f44bc36-7ff6.html

+2

ASDocs는 문서로만 제공됩니다. 코드가 작동하는 방식을 변경하지 않습니다. – JeffryHouser

+0

그래도 이것이 유용한 정보이지만 컴파일러가 예외 처리를 강제하거나 Java 에서처럼 명시 적으로 throw되지는 않습니다 (버그는 AS3에 관한 것, 다른 두 가지는 스레딩이 부족함) Java에서 유용한 기능이 될 때 과부하가 없어야합니다. "글로벌 오류 처리기"를 사용하여이를 처리 할 수있는 방법이 있습니다. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/UncaughtErrorEvent.html – shaunhusain

관련 문제