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
PureMVC Architects Lounge
PureMVC Manifold
Port to AS3
MultiCore Version
Global Error Handling with Pipes
Pages: [
1
]
« previous
next »
Author
Topic: Global Error Handling with Pipes (Read 13016 times)
Elo
Newbie
Posts: 2
Global Error Handling with Pipes
«
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
Re: Global Error Handling with Pipes
«
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
Re: Global Error Handling with Pipes
«
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
]
« previous
next »
Stack Overflow
GitHub
Linked In
Google Plus
Twitter
Powered by SMF 2.0.15
|
SMF © 2006-2007, Simple Machines LLC
|
Content © 2006-2018, Futurescale, Inc.
Loading...