I just use error codes, encapsulating my own codes with the NS_ERROR_GENERATE_FAILURE() macro.

If you need more detailed error information, you can add an extra method/property to the interface. I do that as well. The only hassle is managing the strings which need to bubble out.

In the end, this is probably less work than building a JS exception, if that were possible.

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

Reply via email to