I want to be able to localise specific console messages, but particularly known exceptions I generate.

I only want to localise messages going to the console, so I don't want the exception observer.

However when an nsIException is thrown, the nsIConsole Listener actually receives an nsIScriptError.

The nsIScriptError has lost all properties of the nsIException, line number, column source name and receives it all just as single nsIScriptError.message, which means I can't localise it.

If I throw an nsIScriptError rather than an nsIException again the listener changes my parameters including flags and category.

If I log the nsIScriptError rather than throw it, it works as expected, however I obviously loose my exception!

Finally if I were to implement my own nsIConsoleMessage (my eventual goal) to control my localisation strings, the 'message' property is read-only how the heck do you init() it?

Help!

Thoughts much appreciated!

N
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to