Bug 1339540 part 1. Introduce an ErrorResult-specific nsresult module. r=smaug

This commit is contained in:
Boris Zbarsky
2017-02-15 00:01:57 -05:00
parent a3268b9091
commit f672e3514c
2 changed files with 9 additions and 0 deletions

View File

@@ -1008,6 +1008,12 @@
ERROR(NS_ERROR_UC_UPDATE_MISSING_CHECKSUM, FAILURE(6)),
#undef MODULE
/* ======================================================================= */
/* 43: NS_ERROR_MODULE_ERRORRESULT */
/* ======================================================================= */
#define MODULE NS_ERROR_MODULE_ERRORRESULT
#undef MODULE
/* ======================================================================= */
/* 51: NS_ERROR_MODULE_GENERAL */
/* ======================================================================= */

View File

@@ -81,6 +81,9 @@
#define NS_ERROR_MODULE_DOM_PUSH 40
#define NS_ERROR_MODULE_DOM_MEDIA 41
#define NS_ERROR_MODULE_URL_CLASSIFIER 42
/* ErrorResult gets its own module to reduce the chance of someone accidentally
defining an error code matching one of the ErrorResult ones. */
#define NS_ERROR_MODULE_ERRORRESULT 43
/* NS_ERROR_MODULE_GENERAL should be used by modules that do not
* care if return code values overlap. Callers of methods that