Echo wrote:
I have a class that handles unhandled exceptions. It creates an error id based on the error and the trace back. Would this be a good addition to Dabo? or would it be better to go into some other library or by its self?
It has been on our backburner for a long time to get an error handler added for runtime use. While designing and testing an app, I think most developers would prefer Python's standard handler. But when a user is using the app the developer wrote, they should be notified much more gently and gracefully.
Something that can log the error, smartly decide how fatal the error is (does the app need to close), get feedback from the user, and optionally email or otherwise transfer the record of the error back to the developer, is what I'm thinking.
Also, I'm sure that the trace back creation code is sloppy. It uses a lot of '+'s. Would it be better to add all the parts to a list and then do a ''.join(thelist)?
That's one way. Using string substitution (%s) is another. Or perhaps a templating system.
-- Paul McNett http://paulmcnett.com http://dabodev.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
