Hi all,

What's the standard way of creating error objects in JS XPCOM components, is it the nsIXPCException interface?

Until recently I have just been returning an error string that could be localised. This method quickly fails though if a) there are arguments needed in the error code, or the error is a non-localisable XPCOM error.

The docs say Components.lastResult is very infrequently used. Is there a standard XPCOM interface that is used that messages can be localised as required?

Cheers,

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

Reply via email to