Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> If I receive an error that I can't handle, I need to report the >> failure somehow before bailing out. How can I get an error message, >> given an nsresult? > > In full generality, you don't.
That strikes me as a serious deficiency. I seem to remember from using COM some time ago that COM components could support extended error reporting through an IErrorInfo[2] interface. There's nothing like that in Mozilla? > Specific nsresults in specific modules have messages associated with them. > See > domerr.msg, xpc.msg, etc. Not sure how you can get at that stuff... The error codes I've been getting (and manually looking up) have mostly been file errors. Ben. -- Ben Hutchings -- [EMAIL PROTECTED] shortened to [EMAIL PROTECTED] If you've signed my GPG key, please send a signature on and to the new uid. Design a system any fool can use, and only a fool will want to use it. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
