{"json_modified": "2016-03-28T07:59:31.751827", "uuid": "7a20d8aa-5d97-4a9c-82bc-61f0f00226e6", "title": "Error codes returned by Mozilla APIs", "url": "/en-US/docs/Mozilla/Errors", "tags": ["Necko", "R\u00e9f\u00e9rence", "NeedsContent", "Reference", "Errors", "Developing Mozilla", "Gecko"], "translations": [], "modified": "2015-05-07T12:53:06", "label": "Error codes returned by Mozilla APIs", "localization_tags": [], "locale": "en-US", "id": 5382, "last_edit": "2015-05-07T12:53:00", "summary": "The following tables list errors that can occur when calling various Mozilla APIs. Each error is listed by its name and an error code in parentheses. An error will typically be displayed on the error console, but can be captured using a try-catch block in JavaScript. These constants can be accessed through Components.results. For example, by using Components.results.NS_ERROR_NOT_INITIALIZED", "sections": [{"id": "General_Errors", "title": "General Errors"}, {"id": "File_Errors", "title": "File Errors"}, {"id": "Stream_Errors", "title": "Stream Errors"}, {"id": "Document_and_Node_Errors", "title": "Document and Node Errors"}, {"id": "Network_Errors", "title": "Network Errors"}, {"id": "JavaScript_Errors", "title": "JavaScript Errors"}, {"id": "XPath_Errors", "title": "XPath Errors"}, {"id": "XSLT_Errors", "title": "XSLT Errors"}, {"id": "Miscellaneous_Errors", "title": "Miscellaneous Errors"}, {"id": "See_also", "title": "See also"}], "slug": "Mozilla/Errors", "review_tags": []}