Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Global Error Handling with Pipes  (Read 8860 times)
Elo
Newbie
*
Posts: 2


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

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 Email
« Reply #1 on: August 12, 2012, 04:14:06 »

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 »

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