Unfortunately, that is the best solution that I know of. -Darin
On 2/22/06, Vitaly Kuvaev <[EMAIL PROTECTED]> wrote: > 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 > _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
