You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Jairo <ja...@fusoti.com.br> on 2017/01/20 12:10:49 UTC
Catch Errors
In my Apps I catch errors using the following command:
systemManager.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR,
uncaughtErrorHandler);
In the uncaughtErrorHandler function I use Error(event).message and
event.text to get the errors but can´t get details about where the error
occurs. How can I get this?
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Catch-Errors-tp14559.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Catch Errors
Posted by Clint M <cm...@gmail.com>.
I think you want event.error.
Also… if you compile with verbose-stacktraces=true and use the
event.error.getStackTrace() to get the call stack.
verbose-stacktraces will give you the stack trace even if you compile with
debug=false
On Fri, Jan 20, 2017 at 4:10 AM, Jairo <ja...@fusoti.com.br> wrote:
> In my Apps I catch errors using the following command:
>
> systemManager.loaderInfo.uncaughtErrorEvents.addEventListener(
> UncaughtErrorEvent.UNCAUGHT_ERROR,
> uncaughtErrorHandler);
>
> In the uncaughtErrorHandler function I use Error(event).message and
> event.text to get the errors but can´t get details about where the error
> occurs. How can I get this?
>
>
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/Catch-Errors-tp14559.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>