1 // IWYU pragma: private, include "nsError.h"
2 /* Helper file for nsError.h, via preprocessor magic */
3 /* Standard "it worked" return value */
6 /* ======================================================================= */
7 /* Core errors, not part of any modules */
8 /* ======================================================================= */
9 ERROR(NS_ERROR_BASE
, 0xC1F30000),
10 /* Returned when an instance is not initialized */
11 ERROR(NS_ERROR_NOT_INITIALIZED
, NS_ERROR_BASE
+ 1),
12 /* Returned when an instance is already initialized */
13 ERROR(NS_ERROR_ALREADY_INITIALIZED
, NS_ERROR_BASE
+ 2),
14 /* Returned by a not implemented function */
15 ERROR(NS_ERROR_NOT_IMPLEMENTED
, 0x80004001),
16 /* Returned when a given interface is not supported. */
17 ERROR(NS_NOINTERFACE
, 0x80004002),
18 ERROR(NS_ERROR_NO_INTERFACE
, NS_NOINTERFACE
),
19 /* Returned when a function aborts */
20 ERROR(NS_ERROR_ABORT
, 0x80004004),
21 /* Returned when a function fails */
22 ERROR(NS_ERROR_FAILURE
, 0x80004005),
23 /* Returned when an unexpected error occurs */
24 ERROR(NS_ERROR_UNEXPECTED
, 0x8000ffff),
25 /* Returned when a memory allocation fails */
26 ERROR(NS_ERROR_OUT_OF_MEMORY
, 0x8007000e),
27 /* Returned when an illegal value is passed */
28 ERROR(NS_ERROR_ILLEGAL_VALUE
, 0x80070057),
29 ERROR(NS_ERROR_INVALID_ARG
, NS_ERROR_ILLEGAL_VALUE
),
30 ERROR(NS_ERROR_INVALID_POINTER
, NS_ERROR_INVALID_ARG
),
31 ERROR(NS_ERROR_NULL_POINTER
, NS_ERROR_INVALID_ARG
),
32 /* Returned when a class doesn't allow aggregation */
33 ERROR(NS_ERROR_NO_AGGREGATION
, 0x80040110),
34 /* Returned when an operation can't complete due to an unavailable resource */
35 ERROR(NS_ERROR_NOT_AVAILABLE
, 0x80040111),
36 /* Returned when a class is not registered */
37 ERROR(NS_ERROR_FACTORY_NOT_REGISTERED
, 0x80040154),
38 /* Returned when a class cannot be registered, but may be tried again later */
39 ERROR(NS_ERROR_FACTORY_REGISTER_AGAIN
, 0x80040155),
40 /* Returned when a dynamically loaded factory couldn't be found */
41 ERROR(NS_ERROR_FACTORY_NOT_LOADED
, 0x800401f8),
42 /* Returned when a factory doesn't support signatures */
43 ERROR(NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT
, NS_ERROR_BASE
+ 0x101),
44 /* Returned when a factory already is registered */
45 ERROR(NS_ERROR_FACTORY_EXISTS
, NS_ERROR_BASE
+ 0x100),
48 /* ======================================================================= */
49 /* 1: NS_ERROR_MODULE_XPCOM */
50 /* ======================================================================= */
51 #define MODULE NS_ERROR_MODULE_XPCOM
52 /* Result codes used by nsIVariant */
53 ERROR(NS_ERROR_CANNOT_CONVERT_DATA
, FAILURE(1)),
54 ERROR(NS_ERROR_OBJECT_IS_IMMUTABLE
, FAILURE(2)),
55 ERROR(NS_ERROR_LOSS_OF_SIGNIFICANT_DATA
, FAILURE(3)),
56 /* Result code used by nsIThreadManager */
57 ERROR(NS_ERROR_NOT_SAME_THREAD
, FAILURE(4)),
58 /* Various operations are not permitted during XPCOM shutdown and will fail
59 * with this exception. */
60 ERROR(NS_ERROR_ILLEGAL_DURING_SHUTDOWN
, FAILURE(30)),
61 ERROR(NS_ERROR_SERVICE_NOT_AVAILABLE
, FAILURE(22)),
63 ERROR(NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA
, SUCCESS(1)),
64 /* Used by nsCycleCollectionParticipant */
65 ERROR(NS_SUCCESS_INTERRUPTED_TRAVERSE
, SUCCESS(2)),
67 ERROR(NS_ERROR_SERVICE_NOT_FOUND
, SUCCESS(22)),
69 ERROR(NS_ERROR_SERVICE_IN_USE
, SUCCESS(23)),
73 /* ======================================================================= */
74 /* 2: NS_ERROR_MODULE_BASE */
75 /* ======================================================================= */
76 #define MODULE NS_ERROR_MODULE_BASE
80 ERROR(NS_BASE_STREAM_CLOSED
, FAILURE(2)),
81 /* Error from the operating system */
82 ERROR(NS_BASE_STREAM_OSERROR
, FAILURE(3)),
83 /* Illegal arguments */
84 ERROR(NS_BASE_STREAM_ILLEGAL_ARGS
, FAILURE(4)),
85 /* For unichar streams */
86 ERROR(NS_BASE_STREAM_NO_CONVERTER
, FAILURE(5)),
87 /* For unichar streams */
88 ERROR(NS_BASE_STREAM_BAD_CONVERSION
, FAILURE(6)),
89 ERROR(NS_BASE_STREAM_WOULD_BLOCK
, FAILURE(7)),
93 /* ======================================================================= */
94 /* 3: NS_ERROR_MODULE_GFX */
95 /* ======================================================================= */
96 #define MODULE NS_ERROR_MODULE_GFX
97 /* no printer available (e.g. cannot find _any_ printer) */
98 ERROR(NS_ERROR_GFX_PRINTER_NO_PRINTER_AVAILABLE
, FAILURE(1)),
99 /* _specified_ (by name) printer not found */
100 ERROR(NS_ERROR_GFX_PRINTER_NAME_NOT_FOUND
, FAILURE(2)),
101 /* print-to-file: could not open output file */
102 ERROR(NS_ERROR_GFX_PRINTER_COULD_NOT_OPEN_FILE
, FAILURE(3)),
103 /* print: starting document */
104 ERROR(NS_ERROR_GFX_PRINTER_STARTDOC
, FAILURE(4)),
105 /* print: ending document */
106 ERROR(NS_ERROR_GFX_PRINTER_ENDDOC
, FAILURE(5)),
107 /* print: starting page */
108 ERROR(NS_ERROR_GFX_PRINTER_STARTPAGE
, FAILURE(6)),
109 /* The document is still being loaded */
110 ERROR(NS_ERROR_GFX_PRINTER_DOC_IS_BUSY
, FAILURE(7)),
112 /* Font cmap is strangely structured - avoid this font! */
113 ERROR(NS_ERROR_GFX_CMAP_MALFORMED
, FAILURE(51)),
117 /* ======================================================================= */
118 /* 4: NS_ERROR_MODULE_WIDGET */
119 /* ======================================================================= */
120 #define MODULE NS_ERROR_MODULE_WIDGET
121 /* Used by nsIWidget::NotifyIME(). Returned when the notification is handled
122 * and the notified event is consumed by IME. */
123 ERROR(NS_SUCCESS_EVENT_CONSUMED
, SUCCESS(1)),
127 /* ======================================================================= */
128 /* 6: NS_ERROR_MODULE_NETWORK */
129 /* ======================================================================= */
130 #define MODULE NS_ERROR_MODULE_NETWORK
131 /* General async request error codes:
133 * These error codes are commonly passed through callback methods to indicate
134 * the status of some requested async request.
136 * For example, see nsIRequestObserver::onStopRequest.
139 /* The async request completed successfully. */
140 ERROR(NS_BINDING_SUCCEEDED
, NS_OK
),
142 /* The async request failed for some unknown reason. */
143 ERROR(NS_BINDING_FAILED
, FAILURE(1)),
144 /* The async request failed because it was aborted by some user action. */
145 ERROR(NS_BINDING_ABORTED
, FAILURE(2)),
146 /* The async request has been "redirected" to a different async request.
147 * (e.g., an HTTP redirect occurred).
149 * This error code is used with load groups to notify the load group observer
150 * when a request in the load group is redirected to another request. */
151 ERROR(NS_BINDING_REDIRECTED
, FAILURE(3)),
152 /* The async request has been "retargeted" to a different "handler."
154 * This error code is used with load groups to notify the load group observer
155 * when a request in the load group is removed from the load group and added
156 * to a different load group. */
157 ERROR(NS_BINDING_RETARGETED
, FAILURE(4)),
159 /* Miscellaneous error codes: These errors are not typically passed via
162 /* The URI is malformed. */
163 ERROR(NS_ERROR_MALFORMED_URI
, FAILURE(10)),
164 /* The requested action could not be completed while the object is busy.
165 * Implementations of nsIChannel::asyncOpen will commonly return this error
166 * if the channel has already been opened (and has not yet been closed). */
167 ERROR(NS_ERROR_IN_PROGRESS
, FAILURE(15)),
168 /* Returned from nsIChannel::asyncOpen to indicate that OnDataAvailable will
169 * not be called because there is no content available. This is used by
170 * helper app style protocols (e.g., mailto). XXX perhaps this should be a
172 ERROR(NS_ERROR_NO_CONTENT
, FAILURE(17)),
173 /* The URI scheme corresponds to an unknown protocol handler. */
174 ERROR(NS_ERROR_UNKNOWN_PROTOCOL
, FAILURE(18)),
175 /* The content encoding of the source document was incorrect, for example
176 * returning a plain HTML document advertised as Content-Encoding: gzip */
177 ERROR(NS_ERROR_INVALID_CONTENT_ENCODING
, FAILURE(27)),
178 /* A transport level corruption was found in the source document. for example
179 * a document with a calculated checksum that does not match the Content-MD5
181 ERROR(NS_ERROR_CORRUPTED_CONTENT
, FAILURE(29)),
182 /* While parsing for the first component of a header field using syntax as in
183 * Content-Disposition or Content-Type, the first component was found to be
184 * empty, such as in: Content-Disposition: ; filename=foo */
185 ERROR(NS_ERROR_FIRST_HEADER_FIELD_COMPONENT_EMPTY
, FAILURE(34)),
186 /* Returned from nsIChannel::asyncOpen when trying to open the channel again
187 * (reopening is not supported). */
188 ERROR(NS_ERROR_ALREADY_OPENED
, FAILURE(73)),
190 /* Connectivity error codes: */
192 /* The connection is already established. XXX unused - consider removing. */
193 ERROR(NS_ERROR_ALREADY_CONNECTED
, FAILURE(11)),
194 /* The connection does not exist. XXX unused - consider removing. */
195 ERROR(NS_ERROR_NOT_CONNECTED
, FAILURE(12)),
196 /* The connection attempt failed, for example, because no server was
197 * listening at specified host:port. */
198 ERROR(NS_ERROR_CONNECTION_REFUSED
, FAILURE(13)),
199 /* The connection was lost due to a timeout error. */
200 ERROR(NS_ERROR_NET_TIMEOUT
, FAILURE(14)),
201 /* The requested action could not be completed while the networking library
202 * is in the offline state. */
203 ERROR(NS_ERROR_OFFLINE
, FAILURE(16)),
204 /* The requested action was prohibited because it would have caused the
205 * networking library to establish a connection to an unsafe or otherwise
207 ERROR(NS_ERROR_PORT_ACCESS_NOT_ALLOWED
, FAILURE(19)),
208 /* The connection was established, but no data was ever received. */
209 ERROR(NS_ERROR_NET_RESET
, FAILURE(20)),
210 /* The connection was established, but the data transfer was interrupted. */
211 ERROR(NS_ERROR_NET_INTERRUPT
, FAILURE(71)),
212 /* The connection attempt to a proxy failed. */
213 ERROR(NS_ERROR_PROXY_CONNECTION_REFUSED
, FAILURE(72)),
214 /* A transfer was only partially done when it completed. */
215 ERROR(NS_ERROR_NET_PARTIAL_TRANSFER
, FAILURE(76)),
217 /* XXX really need to better rationalize these error codes. are consumers of
218 * necko really expected to know how to discern the meaning of these?? */
219 /* This request is not resumable, but it was tried to resume it, or to
220 * request resume-specific data. */
221 ERROR(NS_ERROR_NOT_RESUMABLE
, FAILURE(25)),
222 /* The request failed as a result of a detected redirection loop. */
223 ERROR(NS_ERROR_REDIRECT_LOOP
, FAILURE(31)),
224 /* It was attempted to resume the request, but the entity has changed in the
226 ERROR(NS_ERROR_ENTITY_CHANGED
, FAILURE(32)),
227 /* The request failed because the content type returned by the server was not
228 * a type expected by the channel (for nested channels such as the JAR
230 ERROR(NS_ERROR_UNSAFE_CONTENT_TYPE
, FAILURE(74)),
231 /* The request failed because the user tried to access to a remote XUL
232 * document from a website that is not in its white-list. */
233 ERROR(NS_ERROR_REMOTE_XUL
, FAILURE(75)),
236 /* FTP specific error codes: */
238 ERROR(NS_ERROR_FTP_LOGIN
, FAILURE(21)),
239 ERROR(NS_ERROR_FTP_CWD
, FAILURE(22)),
240 ERROR(NS_ERROR_FTP_PASV
, FAILURE(23)),
241 ERROR(NS_ERROR_FTP_PWD
, FAILURE(24)),
242 ERROR(NS_ERROR_FTP_LIST
, FAILURE(28)),
244 /* DNS specific error codes: */
246 /* The lookup of a hostname failed. This generally refers to the hostname
247 * from the URL being loaded. */
248 ERROR(NS_ERROR_UNKNOWN_HOST
, FAILURE(30)),
249 /* A low or medium priority DNS lookup failed because the pending queue was
250 * already full. High priorty (the default) always makes room */
251 ERROR(NS_ERROR_DNS_LOOKUP_QUEUE_FULL
, FAILURE(33)),
252 /* The lookup of a proxy hostname failed. If a channel is configured to
253 * speak to a proxy server, then it will generate this error if the proxy
254 * hostname cannot be resolved. */
255 ERROR(NS_ERROR_UNKNOWN_PROXY_HOST
, FAILURE(42)),
258 /* Socket specific error codes: */
260 /* The specified socket type does not exist. */
261 ERROR(NS_ERROR_UNKNOWN_SOCKET_TYPE
, FAILURE(51)),
262 /* The specified socket type could not be created. */
263 ERROR(NS_ERROR_SOCKET_CREATE_FAILED
, FAILURE(52)),
264 /* The operating system doesn't support the given type of address. */
265 ERROR(NS_ERROR_SOCKET_ADDRESS_NOT_SUPPORTED
, FAILURE(53)),
266 /* The address to which we tried to bind the socket was busy. */
267 ERROR(NS_ERROR_SOCKET_ADDRESS_IN_USE
, FAILURE(54)),
269 /* Cache specific error codes: */
270 ERROR(NS_ERROR_CACHE_KEY_NOT_FOUND
, FAILURE(61)),
271 ERROR(NS_ERROR_CACHE_DATA_IS_STREAM
, FAILURE(62)),
272 ERROR(NS_ERROR_CACHE_DATA_IS_NOT_STREAM
, FAILURE(63)),
273 ERROR(NS_ERROR_CACHE_WAIT_FOR_VALIDATION
, FAILURE(64)),
274 ERROR(NS_ERROR_CACHE_ENTRY_DOOMED
, FAILURE(65)),
275 ERROR(NS_ERROR_CACHE_READ_ACCESS_DENIED
, FAILURE(66)),
276 ERROR(NS_ERROR_CACHE_WRITE_ACCESS_DENIED
, FAILURE(67)),
277 ERROR(NS_ERROR_CACHE_IN_USE
, FAILURE(68)),
278 /* Error passed through onStopRequest if the document could not be fetched
280 ERROR(NS_ERROR_DOCUMENT_NOT_CACHED
, FAILURE(70)),
282 /* Effective TLD Service specific error codes: */
284 /* The requested number of domain levels exceeds those present in the host
286 ERROR(NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS
, FAILURE(80)),
287 /* The host string is an IP address. */
288 ERROR(NS_ERROR_HOST_IS_IP_ADDRESS
, FAILURE(81)),
291 /* StreamLoader specific result codes: */
293 /* Result code returned by nsIStreamLoaderObserver to indicate that the
294 * observer is taking over responsibility for the data buffer, and the loader
295 * should NOT free it. */
296 ERROR(NS_SUCCESS_ADOPTED_DATA
, SUCCESS(90)),
299 ERROR(NS_NET_STATUS_BEGIN_FTP_TRANSACTION
, SUCCESS(27)),
300 ERROR(NS_NET_STATUS_END_FTP_TRANSACTION
, SUCCESS(28)),
302 /* This success code may be returned by nsIAuthModule::getNextToken to
303 * indicate that the authentication is finished and thus there's no need
304 * to call getNextToken again. */
305 ERROR(NS_SUCCESS_AUTH_FINISHED
, SUCCESS(40)),
307 /* These are really not "results", they're statuses, used by nsITransport and
308 * friends. This is abuse of nsresult, but we'll put up with it for now. */
310 ERROR(NS_NET_STATUS_READING
, FAILURE(8)),
311 ERROR(NS_NET_STATUS_WRITING
, FAILURE(9)),
313 /* nsISocketTransport */
314 ERROR(NS_NET_STATUS_RESOLVING_HOST
, FAILURE(3)),
315 ERROR(NS_NET_STATUS_RESOLVED_HOST
, FAILURE(11)),
316 ERROR(NS_NET_STATUS_CONNECTING_TO
, FAILURE(7)),
317 ERROR(NS_NET_STATUS_CONNECTED_TO
, FAILURE(4)),
318 ERROR(NS_NET_STATUS_SENDING_TO
, FAILURE(5)),
319 ERROR(NS_NET_STATUS_WAITING_FOR
, FAILURE(10)),
320 ERROR(NS_NET_STATUS_RECEIVING_FROM
, FAILURE(6)),
324 /* ======================================================================= */
325 /* 7: NS_ERROR_MODULE_PLUGINS */
326 /* ======================================================================= */
327 #define MODULE NS_ERROR_MODULE_PLUGINS
328 ERROR(NS_ERROR_PLUGINS_PLUGINSNOTCHANGED
, FAILURE(1000)),
329 ERROR(NS_ERROR_PLUGIN_DISABLED
, FAILURE(1001)),
330 ERROR(NS_ERROR_PLUGIN_BLOCKLISTED
, FAILURE(1002)),
331 ERROR(NS_ERROR_PLUGIN_TIME_RANGE_NOT_SUPPORTED
, FAILURE(1003)),
332 ERROR(NS_ERROR_PLUGIN_CLICKTOPLAY
, FAILURE(1004)),
336 /* ======================================================================= */
337 /* 8: NS_ERROR_MODULE_LAYOUT */
338 /* ======================================================================= */
339 #define MODULE NS_ERROR_MODULE_LAYOUT
340 /* Return code for nsITableLayout */
341 ERROR(NS_TABLELAYOUT_CELL_NOT_FOUND
, SUCCESS(0)),
342 /* Return code for nsFrame::GetNextPrevLineFromeBlockFrame */
343 ERROR(NS_POSITION_BEFORE_TABLE
, SUCCESS(3)),
344 /** Return codes for nsPresState::GetProperty() */
345 /* Returned if the property exists */
346 ERROR(NS_STATE_PROPERTY_EXISTS
, NS_OK
),
347 /* Returned if the property does not exist */
348 ERROR(NS_STATE_PROPERTY_NOT_THERE
, SUCCESS(5)),
352 /* ======================================================================= */
353 /* 9: NS_ERROR_MODULE_HTMLPARSER */
354 /* ======================================================================= */
355 #define MODULE NS_ERROR_MODULE_HTMLPARSER
356 ERROR(NS_ERROR_HTMLPARSER_CONTINUE
, NS_OK
),
358 ERROR(NS_ERROR_HTMLPARSER_EOF
, FAILURE(1000)),
359 ERROR(NS_ERROR_HTMLPARSER_UNKNOWN
, FAILURE(1001)),
360 ERROR(NS_ERROR_HTMLPARSER_CANTPROPAGATE
, FAILURE(1002)),
361 ERROR(NS_ERROR_HTMLPARSER_CONTEXTMISMATCH
, FAILURE(1003)),
362 ERROR(NS_ERROR_HTMLPARSER_BADFILENAME
, FAILURE(1004)),
363 ERROR(NS_ERROR_HTMLPARSER_BADURL
, FAILURE(1005)),
364 ERROR(NS_ERROR_HTMLPARSER_INVALIDPARSERCONTEXT
, FAILURE(1006)),
365 ERROR(NS_ERROR_HTMLPARSER_INTERRUPTED
, FAILURE(1007)),
366 ERROR(NS_ERROR_HTMLPARSER_BLOCK
, FAILURE(1008)),
367 ERROR(NS_ERROR_HTMLPARSER_BADTOKENIZER
, FAILURE(1009)),
368 ERROR(NS_ERROR_HTMLPARSER_BADATTRIBUTE
, FAILURE(1010)),
369 ERROR(NS_ERROR_HTMLPARSER_UNRESOLVEDDTD
, FAILURE(1011)),
370 ERROR(NS_ERROR_HTMLPARSER_MISPLACEDTABLECONTENT
, FAILURE(1012)),
371 ERROR(NS_ERROR_HTMLPARSER_BADDTD
, FAILURE(1013)),
372 ERROR(NS_ERROR_HTMLPARSER_BADCONTEXT
, FAILURE(1014)),
373 ERROR(NS_ERROR_HTMLPARSER_STOPPARSING
, FAILURE(1015)),
374 ERROR(NS_ERROR_HTMLPARSER_UNTERMINATEDSTRINGLITERAL
, FAILURE(1016)),
375 ERROR(NS_ERROR_HTMLPARSER_HIERARCHYTOODEEP
, FAILURE(1017)),
376 ERROR(NS_ERROR_HTMLPARSER_FAKE_ENDTAG
, FAILURE(1018)),
377 ERROR(NS_ERROR_HTMLPARSER_INVALID_COMMENT
, FAILURE(1019)),
379 ERROR(NS_HTMLTOKENS_NOT_AN_ENTITY
, SUCCESS(2000)),
380 ERROR(NS_HTMLPARSER_VALID_META_CHARSET
, SUCCESS(3000)),
384 /* ======================================================================= */
385 /* 10: NS_ERROR_MODULE_RDF */
386 /* ======================================================================= */
387 #define MODULE NS_ERROR_MODULE_RDF
388 /* Returned from nsIRDFDataSource::Assert() and Unassert() if the assertion
389 * (or unassertion was accepted by the datasource */
390 ERROR(NS_RDF_ASSERTION_ACCEPTED
, NS_OK
),
391 /* Returned from nsIRDFCursor::Advance() if the cursor has no more
392 * elements to enumerate */
393 ERROR(NS_RDF_CURSOR_EMPTY
, SUCCESS(1)),
394 /* Returned from nsIRDFDataSource::GetSource() and GetTarget() if the
395 * source/target has no value */
396 ERROR(NS_RDF_NO_VALUE
, SUCCESS(2)),
397 /* Returned from nsIRDFDataSource::Assert() and Unassert() if the assertion
398 * (or unassertion) was rejected by the datasource; i.e., the datasource was
399 * not willing to record the statement. */
400 ERROR(NS_RDF_ASSERTION_REJECTED
, SUCCESS(3)),
401 /* Return this from rdfITripleVisitor to stop cycling */
402 ERROR(NS_RDF_STOP_VISIT
, SUCCESS(4)),
406 /* ======================================================================= */
407 /* 11: NS_ERROR_MODULE_UCONV */
408 /* ======================================================================= */
409 #define MODULE NS_ERROR_MODULE_UCONV
410 ERROR(NS_ERROR_UCONV_NOCONV
, FAILURE(1)),
411 ERROR(NS_ERROR_UDEC_ILLEGALINPUT
, FAILURE(14)),
413 ERROR(NS_SUCCESS_USING_FALLBACK_LOCALE
, SUCCESS(2)),
414 ERROR(NS_OK_UDEC_EXACTLENGTH
, SUCCESS(11)),
415 ERROR(NS_OK_UDEC_MOREINPUT
, SUCCESS(12)),
416 ERROR(NS_OK_UDEC_MOREOUTPUT
, SUCCESS(13)),
417 ERROR(NS_OK_UDEC_NOBOMFOUND
, SUCCESS(14)),
418 ERROR(NS_OK_UENC_EXACTLENGTH
, SUCCESS(33)),
419 ERROR(NS_OK_UENC_MOREOUTPUT
, SUCCESS(34)),
420 ERROR(NS_ERROR_UENC_NOMAPPING
, SUCCESS(35)),
421 ERROR(NS_OK_UENC_MOREINPUT
, SUCCESS(36)),
423 /* BEGIN DEPRECATED */
424 ERROR(NS_EXACT_LENGTH
, NS_OK_UDEC_EXACTLENGTH
),
425 ERROR(NS_PARTIAL_MORE_INPUT
, NS_OK_UDEC_MOREINPUT
),
426 ERROR(NS_PARTIAL_MORE_OUTPUT
, NS_OK_UDEC_MOREOUTPUT
),
427 ERROR(NS_ERROR_ILLEGAL_INPUT
, NS_ERROR_UDEC_ILLEGALINPUT
),
432 /* ======================================================================= */
433 /* 13: NS_ERROR_MODULE_FILES */
434 /* ======================================================================= */
435 #define MODULE NS_ERROR_MODULE_FILES
436 ERROR(NS_ERROR_FILE_UNRECOGNIZED_PATH
, FAILURE(1)),
437 ERROR(NS_ERROR_FILE_UNRESOLVABLE_SYMLINK
, FAILURE(2)),
438 ERROR(NS_ERROR_FILE_EXECUTION_FAILED
, FAILURE(3)),
439 ERROR(NS_ERROR_FILE_UNKNOWN_TYPE
, FAILURE(4)),
440 ERROR(NS_ERROR_FILE_DESTINATION_NOT_DIR
, FAILURE(5)),
441 ERROR(NS_ERROR_FILE_TARGET_DOES_NOT_EXIST
, FAILURE(6)),
442 ERROR(NS_ERROR_FILE_COPY_OR_MOVE_FAILED
, FAILURE(7)),
443 ERROR(NS_ERROR_FILE_ALREADY_EXISTS
, FAILURE(8)),
444 ERROR(NS_ERROR_FILE_INVALID_PATH
, FAILURE(9)),
445 ERROR(NS_ERROR_FILE_DISK_FULL
, FAILURE(10)),
446 ERROR(NS_ERROR_FILE_CORRUPTED
, FAILURE(11)),
447 ERROR(NS_ERROR_FILE_NOT_DIRECTORY
, FAILURE(12)),
448 ERROR(NS_ERROR_FILE_IS_DIRECTORY
, FAILURE(13)),
449 ERROR(NS_ERROR_FILE_IS_LOCKED
, FAILURE(14)),
450 ERROR(NS_ERROR_FILE_TOO_BIG
, FAILURE(15)),
451 ERROR(NS_ERROR_FILE_NO_DEVICE_SPACE
, FAILURE(16)),
452 ERROR(NS_ERROR_FILE_NAME_TOO_LONG
, FAILURE(17)),
453 ERROR(NS_ERROR_FILE_NOT_FOUND
, FAILURE(18)),
454 ERROR(NS_ERROR_FILE_READ_ONLY
, FAILURE(19)),
455 ERROR(NS_ERROR_FILE_DIR_NOT_EMPTY
, FAILURE(20)),
456 ERROR(NS_ERROR_FILE_ACCESS_DENIED
, FAILURE(21)),
458 ERROR(NS_SUCCESS_FILE_DIRECTORY_EMPTY
, SUCCESS(1)),
459 /* Result codes used by nsIDirectoryServiceProvider2 */
460 ERROR(NS_SUCCESS_AGGREGATE_RESULT
, SUCCESS(2)),
464 /* ======================================================================= */
465 /* 14: NS_ERROR_MODULE_DOM */
466 /* ======================================================================= */
467 #define MODULE NS_ERROR_MODULE_DOM
468 /* XXX If you add a new DOM error code, also add an error string to
469 * dom/base/domerr.msg */
471 /* Standard DOM error codes: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html */
472 ERROR(NS_ERROR_DOM_INDEX_SIZE_ERR
, FAILURE(1)),
473 ERROR(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR
, FAILURE(3)),
474 ERROR(NS_ERROR_DOM_WRONG_DOCUMENT_ERR
, FAILURE(4)),
475 ERROR(NS_ERROR_DOM_INVALID_CHARACTER_ERR
, FAILURE(5)),
476 ERROR(NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR
, FAILURE(7)),
477 ERROR(NS_ERROR_DOM_NOT_FOUND_ERR
, FAILURE(8)),
478 ERROR(NS_ERROR_DOM_NOT_SUPPORTED_ERR
, FAILURE(9)),
479 ERROR(NS_ERROR_DOM_INUSE_ATTRIBUTE_ERR
, FAILURE(10)),
480 ERROR(NS_ERROR_DOM_INVALID_STATE_ERR
, FAILURE(11)),
481 ERROR(NS_ERROR_DOM_SYNTAX_ERR
, FAILURE(12)),
482 ERROR(NS_ERROR_DOM_INVALID_MODIFICATION_ERR
, FAILURE(13)),
483 ERROR(NS_ERROR_DOM_NAMESPACE_ERR
, FAILURE(14)),
484 ERROR(NS_ERROR_DOM_INVALID_ACCESS_ERR
, FAILURE(15)),
485 ERROR(NS_ERROR_DOM_TYPE_MISMATCH_ERR
, FAILURE(17)),
486 ERROR(NS_ERROR_DOM_SECURITY_ERR
, FAILURE(18)),
487 ERROR(NS_ERROR_DOM_NETWORK_ERR
, FAILURE(19)),
488 ERROR(NS_ERROR_DOM_ABORT_ERR
, FAILURE(20)),
489 ERROR(NS_ERROR_DOM_URL_MISMATCH_ERR
, FAILURE(21)),
490 ERROR(NS_ERROR_DOM_QUOTA_EXCEEDED_ERR
, FAILURE(22)),
491 ERROR(NS_ERROR_DOM_TIMEOUT_ERR
, FAILURE(23)),
492 ERROR(NS_ERROR_DOM_INVALID_NODE_TYPE_ERR
, FAILURE(24)),
493 ERROR(NS_ERROR_DOM_DATA_CLONE_ERR
, FAILURE(25)),
494 /* XXX Should be JavaScript native errors */
495 ERROR(NS_ERROR_TYPE_ERR
, FAILURE(26)),
496 ERROR(NS_ERROR_RANGE_ERR
, FAILURE(27)),
497 /* StringEncoding API errors from http://wiki.whatwg.org/wiki/StringEncoding */
498 ERROR(NS_ERROR_DOM_ENCODING_NOT_SUPPORTED_ERR
, FAILURE(28)),
499 ERROR(NS_ERROR_DOM_ENCODING_NOT_UTF_ERR
, FAILURE(29)),
500 ERROR(NS_ERROR_DOM_ENCODING_DECODE_ERR
, FAILURE(30)),
501 ERROR(NS_ERROR_DOM_INVALID_POINTER_ERR
, FAILURE(31)),
502 /* WebCrypto API errors from http://www.w3.org/TR/WebCryptoAPI/ */
503 ERROR(NS_ERROR_DOM_UNKNOWN_ERR
, FAILURE(32)),
504 ERROR(NS_ERROR_DOM_DATA_ERR
, FAILURE(33)),
505 ERROR(NS_ERROR_DOM_OPERATION_ERR
, FAILURE(34)),
506 /* DOM error codes defined by us */
507 ERROR(NS_ERROR_DOM_SECMAN_ERR
, FAILURE(1001)),
508 ERROR(NS_ERROR_DOM_WRONG_TYPE_ERR
, FAILURE(1002)),
509 ERROR(NS_ERROR_DOM_NOT_OBJECT_ERR
, FAILURE(1003)),
510 ERROR(NS_ERROR_DOM_NOT_XPC_OBJECT_ERR
, FAILURE(1004)),
511 ERROR(NS_ERROR_DOM_NOT_NUMBER_ERR
, FAILURE(1005)),
512 ERROR(NS_ERROR_DOM_NOT_BOOLEAN_ERR
, FAILURE(1006)),
513 ERROR(NS_ERROR_DOM_NOT_FUNCTION_ERR
, FAILURE(1007)),
514 ERROR(NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR
, FAILURE(1008)),
515 ERROR(NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN
, FAILURE(1009)),
516 ERROR(NS_ERROR_DOM_PROP_ACCESS_DENIED
, FAILURE(1010)),
517 ERROR(NS_ERROR_DOM_XPCONNECT_ACCESS_DENIED
, FAILURE(1011)),
518 ERROR(NS_ERROR_DOM_BAD_URI
, FAILURE(1012)),
519 ERROR(NS_ERROR_DOM_RETVAL_UNDEFINED
, FAILURE(1013)),
520 ERROR(NS_ERROR_DOM_QUOTA_REACHED
, FAILURE(1014)),
521 ERROR(NS_ERROR_DOM_JS_EXCEPTION
, FAILURE(1015)),
523 /* May be used to indicate when e.g. setting a property value didn't
524 * actually change the value, like for obj.foo = "bar"; obj.foo = "bar";
525 * the second assignment throws NS_SUCCESS_DOM_NO_OPERATION.
527 ERROR(NS_SUCCESS_DOM_NO_OPERATION
, SUCCESS(1)),
531 /* ======================================================================= */
532 /* 15: NS_ERROR_MODULE_IMGLIB */
533 /* ======================================================================= */
534 #define MODULE NS_ERROR_MODULE_IMGLIB
535 ERROR(NS_IMAGELIB_SUCCESS_LOAD_FINISHED
, SUCCESS(0)),
536 ERROR(NS_IMAGELIB_CHANGING_OWNER
, SUCCESS(1)),
538 ERROR(NS_IMAGELIB_ERROR_FAILURE
, FAILURE(5)),
539 ERROR(NS_IMAGELIB_ERROR_NO_DECODER
, FAILURE(6)),
540 ERROR(NS_IMAGELIB_ERROR_NOT_FINISHED
, FAILURE(7)),
541 ERROR(NS_IMAGELIB_ERROR_NO_ENCODER
, FAILURE(9)),
545 /* ======================================================================= */
546 /* 17: NS_ERROR_MODULE_EDITOR */
547 /* ======================================================================= */
548 #define MODULE NS_ERROR_MODULE_EDITOR
549 ERROR(NS_ERROR_EDITOR_NO_SELECTION
, FAILURE(1)),
550 ERROR(NS_ERROR_EDITOR_NO_TEXTNODE
, FAILURE(2)),
551 ERROR(NS_FOUND_TARGET
, FAILURE(3)),
553 ERROR(NS_EDITOR_ELEMENT_NOT_FOUND
, SUCCESS(1)),
557 /* ======================================================================= */
558 /* 18: NS_ERROR_MODULE_XPCONNECT */
559 /* ======================================================================= */
560 #define MODULE NS_ERROR_MODULE_XPCONNECT
561 ERROR(NS_ERROR_XPC_NOT_ENOUGH_ARGS
, FAILURE(1)),
562 ERROR(NS_ERROR_XPC_NEED_OUT_OBJECT
, FAILURE(2)),
563 ERROR(NS_ERROR_XPC_CANT_SET_OUT_VAL
, FAILURE(3)),
564 ERROR(NS_ERROR_XPC_NATIVE_RETURNED_FAILURE
, FAILURE(4)),
565 ERROR(NS_ERROR_XPC_CANT_GET_INTERFACE_INFO
, FAILURE(5)),
566 ERROR(NS_ERROR_XPC_CANT_GET_PARAM_IFACE_INFO
, FAILURE(6)),
567 ERROR(NS_ERROR_XPC_CANT_GET_METHOD_INFO
, FAILURE(7)),
568 ERROR(NS_ERROR_XPC_UNEXPECTED
, FAILURE(8)),
569 ERROR(NS_ERROR_XPC_BAD_CONVERT_JS
, FAILURE(9)),
570 ERROR(NS_ERROR_XPC_BAD_CONVERT_NATIVE
, FAILURE(10)),
571 ERROR(NS_ERROR_XPC_BAD_CONVERT_JS_NULL_REF
, FAILURE(11)),
572 ERROR(NS_ERROR_XPC_BAD_OP_ON_WN_PROTO
, FAILURE(12)),
573 ERROR(NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN
, FAILURE(13)),
574 ERROR(NS_ERROR_XPC_CANT_DEFINE_PROP_ON_WN
, FAILURE(14)),
575 ERROR(NS_ERROR_XPC_CANT_WATCH_WN_STATIC
, FAILURE(15)),
576 ERROR(NS_ERROR_XPC_CANT_EXPORT_WN_STATIC
, FAILURE(16)),
577 ERROR(NS_ERROR_XPC_SCRIPTABLE_CALL_FAILED
, FAILURE(17)),
578 ERROR(NS_ERROR_XPC_SCRIPTABLE_CTOR_FAILED
, FAILURE(18)),
579 ERROR(NS_ERROR_XPC_CANT_CALL_WO_SCRIPTABLE
, FAILURE(19)),
580 ERROR(NS_ERROR_XPC_CANT_CTOR_WO_SCRIPTABLE
, FAILURE(20)),
581 ERROR(NS_ERROR_XPC_CI_RETURNED_FAILURE
, FAILURE(21)),
582 ERROR(NS_ERROR_XPC_GS_RETURNED_FAILURE
, FAILURE(22)),
583 ERROR(NS_ERROR_XPC_BAD_CID
, FAILURE(23)),
584 ERROR(NS_ERROR_XPC_BAD_IID
, FAILURE(24)),
585 ERROR(NS_ERROR_XPC_CANT_CREATE_WN
, FAILURE(25)),
586 ERROR(NS_ERROR_XPC_JS_THREW_EXCEPTION
, FAILURE(26)),
587 ERROR(NS_ERROR_XPC_JS_THREW_NATIVE_OBJECT
, FAILURE(27)),
588 ERROR(NS_ERROR_XPC_JS_THREW_JS_OBJECT
, FAILURE(28)),
589 ERROR(NS_ERROR_XPC_JS_THREW_NULL
, FAILURE(29)),
590 ERROR(NS_ERROR_XPC_JS_THREW_STRING
, FAILURE(30)),
591 ERROR(NS_ERROR_XPC_JS_THREW_NUMBER
, FAILURE(31)),
592 ERROR(NS_ERROR_XPC_JAVASCRIPT_ERROR
, FAILURE(32)),
593 ERROR(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS
, FAILURE(33)),
594 ERROR(NS_ERROR_XPC_CANT_CONVERT_PRIMITIVE_TO_ARRAY
, FAILURE(34)),
595 ERROR(NS_ERROR_XPC_CANT_CONVERT_OBJECT_TO_ARRAY
, FAILURE(35)),
596 ERROR(NS_ERROR_XPC_NOT_ENOUGH_ELEMENTS_IN_ARRAY
, FAILURE(36)),
597 ERROR(NS_ERROR_XPC_CANT_GET_ARRAY_INFO
, FAILURE(37)),
598 ERROR(NS_ERROR_XPC_NOT_ENOUGH_CHARS_IN_STRING
, FAILURE(38)),
599 ERROR(NS_ERROR_XPC_SECURITY_MANAGER_VETO
, FAILURE(39)),
600 ERROR(NS_ERROR_XPC_INTERFACE_NOT_SCRIPTABLE
, FAILURE(40)),
601 ERROR(NS_ERROR_XPC_INTERFACE_NOT_FROM_NSISUPPORTS
, FAILURE(41)),
602 ERROR(NS_ERROR_XPC_CANT_GET_JSOBJECT_OF_DOM_OBJECT
, FAILURE(42)),
603 ERROR(NS_ERROR_XPC_CANT_SET_READ_ONLY_CONSTANT
, FAILURE(43)),
604 ERROR(NS_ERROR_XPC_CANT_SET_READ_ONLY_ATTRIBUTE
, FAILURE(44)),
605 ERROR(NS_ERROR_XPC_CANT_SET_READ_ONLY_METHOD
, FAILURE(45)),
606 ERROR(NS_ERROR_XPC_CANT_ADD_PROP_TO_WRAPPED_NATIVE
, FAILURE(46)),
607 ERROR(NS_ERROR_XPC_CALL_TO_SCRIPTABLE_FAILED
, FAILURE(47)),
608 ERROR(NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED
, FAILURE(48)),
609 ERROR(NS_ERROR_XPC_BAD_ID_STRING
, FAILURE(49)),
610 ERROR(NS_ERROR_XPC_BAD_INITIALIZER_NAME
, FAILURE(50)),
611 ERROR(NS_ERROR_XPC_HAS_BEEN_SHUTDOWN
, FAILURE(51)),
612 ERROR(NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN
, FAILURE(52)),
613 ERROR(NS_ERROR_XPC_BAD_CONVERT_JS_ZERO_ISNOT_NULL
, FAILURE(53)),
614 ERROR(NS_ERROR_XPC_CANT_PASS_CPOW_TO_NATIVE
, FAILURE(54)),
615 /* any new errors here should have an associated entry added in xpc.msg */
617 ERROR(NS_SUCCESS_I_DID_SOMETHING
, SUCCESS(1)),
621 /* ======================================================================= */
622 /* 19: NS_ERROR_MODULE_PROFILE */
623 /* ======================================================================= */
624 #define MODULE NS_ERROR_MODULE_PROFILE
625 ERROR(NS_ERROR_LAUNCHED_CHILD_PROCESS
, FAILURE(200)),
629 /* ======================================================================= */
630 /* 21: NS_ERROR_MODULE_SECURITY */
631 /* ======================================================================= */
632 #define MODULE NS_ERROR_MODULE_SECURITY
633 /* Error code for CSP */
634 ERROR(NS_ERROR_CSP_FRAME_ANCESTOR_VIOLATION
, FAILURE(99)),
636 /* CMS specific nsresult error codes. Note: the numbers used here correspond
637 * to the values in nsICMSMessageErrors.idl. */
638 ERROR(NS_ERROR_CMS_VERIFY_NOT_SIGNED
, FAILURE(1024)),
639 ERROR(NS_ERROR_CMS_VERIFY_NO_CONTENT_INFO
, FAILURE(1025)),
640 ERROR(NS_ERROR_CMS_VERIFY_BAD_DIGEST
, FAILURE(1026)),
641 ERROR(NS_ERROR_CMS_VERIFY_NOCERT
, FAILURE(1028)),
642 ERROR(NS_ERROR_CMS_VERIFY_UNTRUSTED
, FAILURE(1029)),
643 ERROR(NS_ERROR_CMS_VERIFY_ERROR_UNVERIFIED
, FAILURE(1031)),
644 ERROR(NS_ERROR_CMS_VERIFY_ERROR_PROCESSING
, FAILURE(1032)),
645 ERROR(NS_ERROR_CMS_VERIFY_BAD_SIGNATURE
, FAILURE(1033)),
646 ERROR(NS_ERROR_CMS_VERIFY_DIGEST_MISMATCH
, FAILURE(1034)),
647 ERROR(NS_ERROR_CMS_VERIFY_UNKNOWN_ALGO
, FAILURE(1035)),
648 ERROR(NS_ERROR_CMS_VERIFY_UNSUPPORTED_ALGO
, FAILURE(1036)),
649 ERROR(NS_ERROR_CMS_VERIFY_MALFORMED_SIGNATURE
, FAILURE(1037)),
650 ERROR(NS_ERROR_CMS_VERIFY_HEADER_MISMATCH
, FAILURE(1038)),
651 ERROR(NS_ERROR_CMS_VERIFY_NOT_YET_ATTEMPTED
, FAILURE(1039)),
652 ERROR(NS_ERROR_CMS_VERIFY_CERT_WITHOUT_ADDRESS
, FAILURE(1040)),
653 ERROR(NS_ERROR_CMS_ENCRYPT_NO_BULK_ALG
, FAILURE(1056)),
654 ERROR(NS_ERROR_CMS_ENCRYPT_INCOMPLETE
, FAILURE(1057)),
658 /* ======================================================================= */
659 /* 22: NS_ERROR_MODULE_DOM_XPATH */
660 /* ======================================================================= */
661 #define MODULE NS_ERROR_MODULE_DOM_XPATH
662 /* DOM error codes from http://www.w3.org/TR/DOM-Level-3-XPath/ */
663 ERROR(NS_ERROR_DOM_INVALID_EXPRESSION_ERR
, FAILURE(51)),
664 ERROR(NS_ERROR_DOM_TYPE_ERR
, FAILURE(52)),
668 /* ======================================================================= */
669 /* 24: NS_ERROR_MODULE_URILOADER */
670 /* ======================================================================= */
671 #define MODULE NS_ERROR_MODULE_URILOADER
672 ERROR(NS_ERROR_WONT_HANDLE_CONTENT
, FAILURE(1)),
673 /* The load has been cancelled because it was found on a malware or phishing
675 ERROR(NS_ERROR_MALWARE_URI
, FAILURE(30)),
676 ERROR(NS_ERROR_PHISHING_URI
, FAILURE(31)),
677 ERROR(NS_ERROR_TRACKING_URI
, FAILURE(34)),
678 /* Used when "Save Link As..." doesn't see the headers quickly enough to
679 * choose a filename. See nsContextMenu.js. */
680 ERROR(NS_ERROR_SAVE_LINK_AS_TIMEOUT
, FAILURE(32)),
681 /* Used when the data from a channel has already been parsed and cached so it
682 * doesn't need to be reparsed from the original source. */
683 ERROR(NS_ERROR_PARSED_DATA_CACHED
, FAILURE(33)),
685 /* This success code indicates that a refresh header was found and
686 * successfully setup. */
687 ERROR(NS_REFRESHURI_HEADER_FOUND
, SUCCESS(2)),
691 /* ======================================================================= */
692 /* 25: NS_ERROR_MODULE_CONTENT */
693 /* ======================================================================= */
694 #define MODULE NS_ERROR_MODULE_CONTENT
695 /* Error codes for image loading */
696 ERROR(NS_ERROR_IMAGE_SRC_CHANGED
, FAILURE(4)),
697 ERROR(NS_ERROR_IMAGE_BLOCKED
, FAILURE(5)),
698 /* Error codes for content policy blocking */
699 ERROR(NS_ERROR_CONTENT_BLOCKED
, FAILURE(6)),
700 ERROR(NS_ERROR_CONTENT_BLOCKED_SHOW_ALT
, FAILURE(7)),
701 /* Success variations of content policy blocking */
702 ERROR(NS_PROPTABLE_PROP_NOT_THERE
, FAILURE(10)),
703 /* Error code for XBL */
704 ERROR(NS_ERROR_XBL_BLOCKED
, FAILURE(15)),
705 /* Error code for when the content process crashed */
706 ERROR(NS_ERROR_CONTENT_CRASHED
, FAILURE(16)),
708 /* XXX this is not really used */
709 ERROR(NS_HTML_STYLE_PROPERTY_NOT_THERE
, SUCCESS(2)),
710 ERROR(NS_CONTENT_BLOCKED
, SUCCESS(8)),
711 ERROR(NS_CONTENT_BLOCKED_SHOW_ALT
, SUCCESS(9)),
712 ERROR(NS_PROPTABLE_PROP_OVERWRITTEN
, SUCCESS(11)),
713 /* Error codes for FindBroadcaster in XULDocument.cpp */
714 ERROR(NS_FINDBROADCASTER_NOT_FOUND
, SUCCESS(12)),
715 ERROR(NS_FINDBROADCASTER_FOUND
, SUCCESS(13)),
716 ERROR(NS_FINDBROADCASTER_AWAIT_OVERLAYS
, SUCCESS(14)),
720 /* ======================================================================= */
721 /* 27: NS_ERROR_MODULE_XSLT */
722 /* ======================================================================= */
723 #define MODULE NS_ERROR_MODULE_XSLT
724 ERROR(NS_ERROR_XPATH_INVALID_ARG
, NS_ERROR_INVALID_ARG
),
726 ERROR(NS_ERROR_XSLT_PARSE_FAILURE
, FAILURE(1)),
727 ERROR(NS_ERROR_XPATH_PARSE_FAILURE
, FAILURE(2)),
728 ERROR(NS_ERROR_XSLT_ALREADY_SET
, FAILURE(3)),
729 ERROR(NS_ERROR_XSLT_EXECUTION_FAILURE
, FAILURE(4)),
730 ERROR(NS_ERROR_XPATH_UNKNOWN_FUNCTION
, FAILURE(5)),
731 ERROR(NS_ERROR_XSLT_BAD_RECURSION
, FAILURE(6)),
732 ERROR(NS_ERROR_XSLT_BAD_VALUE
, FAILURE(7)),
733 ERROR(NS_ERROR_XSLT_NODESET_EXPECTED
, FAILURE(8)),
734 ERROR(NS_ERROR_XSLT_ABORTED
, FAILURE(9)),
735 ERROR(NS_ERROR_XSLT_NETWORK_ERROR
, FAILURE(10)),
736 ERROR(NS_ERROR_XSLT_WRONG_MIME_TYPE
, FAILURE(11)),
737 ERROR(NS_ERROR_XSLT_LOAD_RECURSION
, FAILURE(12)),
738 ERROR(NS_ERROR_XPATH_BAD_ARGUMENT_COUNT
, FAILURE(13)),
739 ERROR(NS_ERROR_XPATH_BAD_EXTENSION_FUNCTION
, FAILURE(14)),
740 ERROR(NS_ERROR_XPATH_PAREN_EXPECTED
, FAILURE(15)),
741 ERROR(NS_ERROR_XPATH_INVALID_AXIS
, FAILURE(16)),
742 ERROR(NS_ERROR_XPATH_NO_NODE_TYPE_TEST
, FAILURE(17)),
743 ERROR(NS_ERROR_XPATH_BRACKET_EXPECTED
, FAILURE(18)),
744 ERROR(NS_ERROR_XPATH_INVALID_VAR_NAME
, FAILURE(19)),
745 ERROR(NS_ERROR_XPATH_UNEXPECTED_END
, FAILURE(20)),
746 ERROR(NS_ERROR_XPATH_OPERATOR_EXPECTED
, FAILURE(21)),
747 ERROR(NS_ERROR_XPATH_UNCLOSED_LITERAL
, FAILURE(22)),
748 ERROR(NS_ERROR_XPATH_BAD_COLON
, FAILURE(23)),
749 ERROR(NS_ERROR_XPATH_BAD_BANG
, FAILURE(24)),
750 ERROR(NS_ERROR_XPATH_ILLEGAL_CHAR
, FAILURE(25)),
751 ERROR(NS_ERROR_XPATH_BINARY_EXPECTED
, FAILURE(26)),
752 ERROR(NS_ERROR_XSLT_LOAD_BLOCKED_ERROR
, FAILURE(27)),
753 ERROR(NS_ERROR_XPATH_INVALID_EXPRESSION_EVALUATED
, FAILURE(28)),
754 ERROR(NS_ERROR_XPATH_UNBALANCED_CURLY_BRACE
, FAILURE(29)),
755 ERROR(NS_ERROR_XSLT_BAD_NODE_NAME
, FAILURE(30)),
756 ERROR(NS_ERROR_XSLT_VAR_ALREADY_SET
, FAILURE(31)),
758 ERROR(NS_XSLT_GET_NEW_HANDLER
, SUCCESS(1)),
762 /* ======================================================================= */
763 /* 29: NS_ERROR_MODULE_SVG */
764 /* ======================================================================= */
765 #define MODULE NS_ERROR_MODULE_SVG
766 /* SVG DOM error codes from http://www.w3.org/TR/SVG11/svgdom.html */
767 ERROR(NS_ERROR_DOM_SVG_WRONG_TYPE_ERR
, FAILURE(0)),
768 /* Yes, the spec says "INVERTABLE", not "INVERTIBLE" */
769 ERROR(NS_ERROR_DOM_SVG_MATRIX_NOT_INVERTABLE
, FAILURE(2)),
773 /* ======================================================================= */
774 /* 30: NS_ERROR_MODULE_STORAGE */
775 /* ======================================================================= */
776 #define MODULE NS_ERROR_MODULE_STORAGE
777 /* To add additional errors to Storage, please append entries to the bottom
778 * of the list in the following format:
779 * NS_ERROR_STORAGE_YOUR_ERR, FAILURE(n)
780 * where n is the next unique positive integer. You must also add an entry
781 * to js/xpconnect/src/xpc.msg under the code block beginning with the
782 * comment 'storage related codes (from mozStorage.h)', in the following
783 * format: 'XPC_MSG_DEF(NS_ERROR_STORAGE_YOUR_ERR, "brief description of your
785 ERROR(NS_ERROR_STORAGE_BUSY
, FAILURE(1)),
786 ERROR(NS_ERROR_STORAGE_IOERR
, FAILURE(2)),
787 ERROR(NS_ERROR_STORAGE_CONSTRAINT
, FAILURE(3)),
791 /* ======================================================================= */
792 /* 32: NS_ERROR_MODULE_DOM_FILE */
793 /* ======================================================================= */
794 #define MODULE NS_ERROR_MODULE_DOM_FILE
795 ERROR(NS_ERROR_DOM_FILE_NOT_FOUND_ERR
, FAILURE(0)),
796 ERROR(NS_ERROR_DOM_FILE_NOT_READABLE_ERR
, FAILURE(1)),
797 ERROR(NS_ERROR_DOM_FILE_ABORT_ERR
, FAILURE(2)),
801 /* ======================================================================= */
802 /* 33: NS_ERROR_MODULE_DOM_INDEXEDDB */
803 /* ======================================================================= */
804 #define MODULE NS_ERROR_MODULE_DOM_INDEXEDDB
805 /* IndexedDB error codes http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html */
806 ERROR(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
, FAILURE(1)),
807 ERROR(NS_ERROR_DOM_INDEXEDDB_NOT_FOUND_ERR
, FAILURE(3)),
808 ERROR(NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR
, FAILURE(4)),
809 ERROR(NS_ERROR_DOM_INDEXEDDB_DATA_ERR
, FAILURE(5)),
810 ERROR(NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR
, FAILURE(6)),
811 ERROR(NS_ERROR_DOM_INDEXEDDB_TRANSACTION_INACTIVE_ERR
, FAILURE(7)),
812 ERROR(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR
, FAILURE(8)),
813 ERROR(NS_ERROR_DOM_INDEXEDDB_READ_ONLY_ERR
, FAILURE(9)),
814 ERROR(NS_ERROR_DOM_INDEXEDDB_TIMEOUT_ERR
, FAILURE(10)),
815 ERROR(NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR
, FAILURE(11)),
816 ERROR(NS_ERROR_DOM_INDEXEDDB_VERSION_ERR
, FAILURE(12)),
817 ERROR(NS_ERROR_DOM_INDEXEDDB_RECOVERABLE_ERR
, FAILURE(1001)),
821 /* ======================================================================= */
822 /* 34: NS_ERROR_MODULE_DOM_FILEHANDLE */
823 /* ======================================================================= */
824 #define MODULE NS_ERROR_MODULE_DOM_FILEHANDLE
825 ERROR(NS_ERROR_DOM_FILEHANDLE_UNKNOWN_ERR
, FAILURE(1)),
826 ERROR(NS_ERROR_DOM_FILEHANDLE_NOT_ALLOWED_ERR
, FAILURE(2)),
827 ERROR(NS_ERROR_DOM_FILEHANDLE_INACTIVE_ERR
, FAILURE(3)),
828 ERROR(NS_ERROR_DOM_FILEHANDLE_ABORT_ERR
, FAILURE(4)),
829 ERROR(NS_ERROR_DOM_FILEHANDLE_READ_ONLY_ERR
, FAILURE(5)),
830 ERROR(NS_ERROR_DOM_FILEHANDLE_QUOTA_ERR
, FAILURE(6)),
833 /* ======================================================================= */
834 /* 35: NS_ERROR_MODULE_SIGNED_JAR */
835 /* ======================================================================= */
836 #define MODULE NS_ERROR_MODULE_SIGNED_JAR
837 ERROR(NS_ERROR_SIGNED_JAR_NOT_SIGNED
, FAILURE(1)),
838 ERROR(NS_ERROR_SIGNED_JAR_MODIFIED_ENTRY
, FAILURE(2)),
839 ERROR(NS_ERROR_SIGNED_JAR_UNSIGNED_ENTRY
, FAILURE(3)),
840 ERROR(NS_ERROR_SIGNED_JAR_ENTRY_MISSING
, FAILURE(4)),
841 ERROR(NS_ERROR_SIGNED_JAR_WRONG_SIGNATURE
, FAILURE(5)),
842 ERROR(NS_ERROR_SIGNED_JAR_ENTRY_TOO_LARGE
, FAILURE(6)),
843 ERROR(NS_ERROR_SIGNED_JAR_ENTRY_INVALID
, FAILURE(7)),
844 ERROR(NS_ERROR_SIGNED_JAR_MANIFEST_INVALID
, FAILURE(8)),
847 /* ======================================================================= */
848 /* 36: NS_ERROR_MODULE_DOM_FILESYSTEM */
849 /* ======================================================================= */
850 #define MODULE NS_ERROR_MODULE_DOM_FILESYSTEM
851 ERROR(NS_ERROR_DOM_FILESYSTEM_INVALID_PATH_ERR
, FAILURE(1)),
852 ERROR(NS_ERROR_DOM_FILESYSTEM_INVALID_MODIFICATION_ERR
, FAILURE(2)),
853 ERROR(NS_ERROR_DOM_FILESYSTEM_NO_MODIFICATION_ALLOWED_ERR
, FAILURE(3)),
854 ERROR(NS_ERROR_DOM_FILESYSTEM_PATH_EXISTS_ERR
, FAILURE(4)),
855 ERROR(NS_ERROR_DOM_FILESYSTEM_TYPE_MISMATCH_ERR
, FAILURE(5)),
856 ERROR(NS_ERROR_DOM_FILESYSTEM_UNKNOWN_ERR
, FAILURE(6)),
859 /* ======================================================================= */
860 /* 37: NS_ERROR_MODULE_DOM_BLUETOOTH */
861 /* ======================================================================= */
862 #define MODULE NS_ERROR_MODULE_DOM_BLUETOOTH
863 ERROR(NS_ERROR_DOM_BLUETOOTH_FAIL
, FAILURE(1)),
864 ERROR(NS_ERROR_DOM_BLUETOOTH_NOT_READY
, FAILURE(2)),
865 ERROR(NS_ERROR_DOM_BLUETOOTH_NOMEM
, FAILURE(3)),
866 ERROR(NS_ERROR_DOM_BLUETOOTH_BUSY
, FAILURE(4)),
867 ERROR(NS_ERROR_DOM_BLUETOOTH_DONE
, FAILURE(5)),
868 ERROR(NS_ERROR_DOM_BLUETOOTH_UNSUPPORTED
, FAILURE(6)),
869 ERROR(NS_ERROR_DOM_BLUETOOTH_PARM_INVALID
, FAILURE(7)),
870 ERROR(NS_ERROR_DOM_BLUETOOTH_UNHANDLED
, FAILURE(8)),
871 ERROR(NS_ERROR_DOM_BLUETOOTH_AUTH_FAILURE
, FAILURE(9)),
872 ERROR(NS_ERROR_DOM_BLUETOOTH_RMT_DEV_DOWN
, FAILURE(10)),
873 ERROR(NS_ERROR_DOM_BLUETOOTH_AUTH_REJECTED
, FAILURE(11)),
876 /* ======================================================================= */
877 /* 38: NS_ERROR_MODULE_SIGNED_APP */
878 /* ======================================================================= */
879 #define MODULE NS_ERROR_MODULE_SIGNED_APP
880 ERROR(NS_ERROR_SIGNED_APP_MANIFEST_INVALID
, FAILURE(1)),
883 /* ======================================================================= */
884 /* 51: NS_ERROR_MODULE_GENERAL */
885 /* ======================================================================= */
886 #define MODULE NS_ERROR_MODULE_GENERAL
887 /* Error code used internally by the incremental downloader to cancel the
888 * network channel when the download is already complete. */
889 ERROR(NS_ERROR_DOWNLOAD_COMPLETE
, FAILURE(1)),
890 /* Error code used internally by the incremental downloader to cancel the
891 * network channel when the response to a range request is 200 instead of
893 ERROR(NS_ERROR_DOWNLOAD_NOT_PARTIAL
, FAILURE(2)),
894 ERROR(NS_ERROR_UNORM_MOREOUTPUT
, FAILURE(33)),
896 ERROR(NS_ERROR_DOCSHELL_REQUEST_REJECTED
, FAILURE(1001)),
897 /* This is needed for displaying an error message when navigation is
898 * attempted on a document when printing The value arbitrary as long as it
899 * doesn't conflict with any of the other values in the errors in
900 * DisplayLoadError */
901 ERROR(NS_ERROR_DOCUMENT_IS_PRINTMODE
, FAILURE(2001)),
903 ERROR(NS_SUCCESS_DONT_FIXUP
, SUCCESS(1)),
904 /* This success code may be returned by nsIAppStartup::Run to indicate that
905 * the application should be restarted. This condition corresponds to the
906 * case in which nsIAppStartup::Quit was called with the eRestart flag. */
907 ERROR(NS_SUCCESS_RESTART_APP
, SUCCESS(1)),
908 ERROR(NS_SUCCESS_RESTART_METRO_APP
, SUCCESS(2)),
909 ERROR(NS_SUCCESS_UNORM_NOTFOUND
, SUCCESS(17)),
913 /* raised when current pivot's position is needed but it's not in the tree */
914 ERROR(NS_ERROR_NOT_IN_TREE
, FAILURE(38)),
916 /* see nsTextEquivUtils */
917 ERROR(NS_OK_NO_NAME_CLAUSE_HANDLED
, SUCCESS(34))