ActionScript 3 top-level exception handling

Is it possible to catch ALL exceptions at some top level in ActionScript 3? If so, how?

+3
source share
2 answers

View the UNCAUGHT_ERROR event .

An update to respond to the comment left by the original poster, the event itself is available for both Flash and the AIR 2 runtime:

Language Version: ActionScript 3.0 Runtime Versions: Flash Player 10.1, AIR 2

+3
source

I do not think that it is possible to catch all synchronous and asynchronous events generated by AS3 code in one place.

-2

Source: https://habr.com/ru/post/1761410/


All Articles