Hello,

I'm creating my own XPCOM components to use in my Gecko embedding project and I need to define my own error codes to return from different methods. What is the proper way of doing this?

Currently, I'm using my own module code and am costructing my errors with it:

#define ERROR_MODULE_APP  1000
#define SOME_ERROR  NS_ERROR_GENERATE_FAILURE ( ERROR_MODULE_APP, 1 )

..., but I have a feeling this is not safe.

Thanks in advance for your help,
-- Vitaly
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to