Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
December 18, 2017, 07:51:58 AM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: Global Error Handling with Pipes  (Read 3798 times)
Elo
Newbie
*
Posts: 2


View Profile Email
« on: August 10, 2012, 07:01:30 AM »

Hi,

i use the multicore version of Pure MVC with Pipes.
I have a shell which loads all Cores (single swfs) and now i want
to implement the global exception handling for logging.
In one Module i created a GlobalExceptionMediator.
There i add the Event Listener view.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onError);
where view is the Main class from the shell.

My Problem is that errors for example in a Proxy (because of no relation to any view) do not fire the event.

Does anybody know a solution for the problem?

Best,

Marc
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW
« Reply #1 on: August 12, 2012, 04:14:06 PM »

I think you may need to add this listener in the Shell/application and respond by
  • Pipe Message to the error handling core (if you're using the Pipes utility)
  • Interface call on error handling core (otherwise)

-=Cliff>
Logged
Elo
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: August 13, 2012, 02:50:20 AM »

Hello Cliff,

thanks for the answer.
It works now. In the Shell i add the listener to each loader which loads
a module. When the event is fired i just send a message over the pipe.

Best,

Marc
Logged
Pages: [1]
Print
Jump to: