{"json_modified": "2018-10-01T19:02:44.892326", "uuid": "90a838e6-ddfc-4e38-ad12-83a5fa607233", "title": "L\u1ed7i", "url": "/vi/docs/Web/JavaScript/Reference/Global_Objects/loi", "tags": [], "translations": [{"uuid": "60e54a42-6ec6-43b4-985c-701f003feb7e", "title": "Error", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Reference", "Error", "JavaScript"], "summary": "The <strong><code>Error</code></strong> constructor creates an error object. Instances of <code>Error</code> objects are thrown when runtime errors occur. The <code>Error</code> object can also be used as a base object\u00a0for user-defined exceptions. See below for standard built-in error types.", "localization_tags": [], "locale": "en-US", "last_edit": "2018-09-11T16:10:36.916070", "review_tags": ["editorial"]}, {"uuid": "2fca82bb-8c4c-4317-bfc3-bef25b472076", "title": "Error", "url": "/ca/docs/Web/JavaScript/Referencia/Objectes_globals/Error", "tags": [], "summary": "El constructor <strong><code>Error</code></strong> crea un objecte que representa un error. Quan succeeix un error en temps d'execuci\u00f3 JavaScript llen\u00e7a una inst\u00e0ncia de tipus <code>Error</code>. L'objecte <code>Error</code> tamb\u00e9 es pot emprar com a objecte base per a excepcions definides per l'usuari. Vegeu m\u00e9s abaix per a tipus d'errors standard que forment part del nucli.", "localization_tags": [], "locale": "ca", "last_edit": "2018-09-28T06:26:04.141318", "review_tags": []}, {"uuid": "60e54a42-6ec6-43b4-985c-701f003feb7e", "title": "Error", "url": "/de/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Reference", "Error", "JavaScript"], "summary": "Der <strong><code>Error</code></strong> Konstruktor erstellt ein Fehler (Error) Objekt. Instanzen von <code>Error</code> Objekten werden geworfen (thrown), wenn zur Laufzeit ein Fehler auftritt. Das <code>Error</code> Objekt kann zudem als Basis f\u00fcr benutzerdefinierte Fehler benutzt werden. Weiter unten werden schon eingebaute Fehlertypen beschrieben.", "localization_tags": [], "locale": "de", "last_edit": "2018-09-17T18:03:39.054555", "review_tags": []}, {"uuid": "4c07ec4b-57fb-4b98-99ac-fc201be5cb83", "title": "Error", "url": "/es/docs/Web/JavaScript/Referencia/Objetos_globales/Error", "tags": ["Error", "JavaScript"], "summary": "Representa un error en tiempo de ejecuci\u00f3n.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2017-07-14T09:30:59.800837", "review_tags": []}, {"uuid": "bb11efc8-b308-4c40-b9da-c7ac897af7dc", "title": "Error", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Error", "tags": ["Error", "JavaScript", "Reference"], "summary": "Le constructeur <strong><code>Error</code></strong> cr\u00e9e un objet d'erreur. Des instances d'objets <code>Error</code> sont d\u00e9clench\u00e9es lorsque des erreurs d'ex\u00e9cution surviennent. L'objet <code>Error</code> peut aussi \u00eatre utilis\u00e9 comme objet de base pour\u00a0des exceptions\u00a0d\u00e9finies par l'utilisateur. Voir ci-dessous pour les types d'erreur natifs standard.", "localization_tags": ["inprogress"], "locale": "fr", "last_edit": "2018-07-01T05:05:28.539509", "review_tags": []}, {"uuid": "3dc3f4f1-beaf-48ab-82a0-0a31061d667e", "title": "Error", "url": "/id/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Reference", "Error", "JavaScript"], "summary": "Konstruktor\u00a0<strong><code>Error</code></strong>\u00a0membuat sebuah objek\u00a0error. Misal objek\u00a0<code>Error</code>\u00a0di lontarkan ketika terjadi\u00a0runtime error. Objek\u00a0<code>Error</code>\u00a0juga dapat digunakan sebagai objek dasar dengan pengecualian yang ditentukan pengguna. Berikut\u00a0untuk standard jenis built-in error.", "localization_tags": ["inprogress"], "locale": "id", "last_edit": "2016-06-11T18:35:26", "review_tags": []}, {"uuid": "33ae5a38-deb8-443e-9bd2-374df1a5693c", "title": "Error", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Reference", "Error", "JavaScript"], "summary": "<strong><code>Error</code></strong> \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306f\u3001\u30a8\u30e9\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002<code>Error</code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u6642\u306b\u6295\u3052\u3089\u308c\u307e\u3059\u3002<code>Error</code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u4f8b\u5916\u306e\u57fa\u5e95\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u6a19\u6e96\u306e\u7d44\u307f\u8fbc\u307f\u30a8\u30e9\u30fc\u578b\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-10-08T04:27:17", "review_tags": []}, {"uuid": "b3e9364d-4734-4ca3-99fc-3860710d382b", "title": "Error", "url": "/ko/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Error", "JavaScript"], "summary": "\uc5d0\ub7ec \uac1d\uccb4\ub97c \uc0dd\uc131\ud55c\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2015-08-09T17:38:34", "review_tags": []}, {"uuid": "ca2e9e82-d043-4faf-abe8-fd8bb73fc09b", "title": "Error", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Error", "tags": ["TopicStub", "Error", "JavaScript", "CustomError", "Obs\u0142uga b\u0142\u0119d\u00f3w", "B\u0142\u0105d"], "summary": "B\u0142\u0119dy w trakcie wykonywania programu skutkuj\u0105 utworzeniem i rzuceniem nowego obiektu\u00a0<code>Error</code>.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2018-07-17T04:17:46.589942", "review_tags": []}, {"uuid": "3507cb18-8861-42a2-bb83-0a9bdb1a932c", "title": "Error", "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Error", "Reference", "JavaScript", "Refer\u00eancia(2)", "Custom Error", "Erro"], "summary": "O construtor de\u00a0<strong><code>Error</code></strong> cria um objeto de erro. Inst\u00e2ncias de objetos\u00a0<code>Error</code>\u00a0s\u00e3o lan\u00e7adas quando erros de tempo de execu\u00e7\u00e3o ocorrem. O objeto\u00a0<code>Error</code> tamb\u00e9m pode ser usado como\u00a0objeto base para exce\u00e7\u00f5es definidas pelo usu\u00e1rio.\u00a0Veja abaixo tipos de erro padr\u00f5es embutidos.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2016-01-17T10:54:56", "review_tags": []}, {"uuid": "d34c42c3-78b0-44e3-9f0f-b595777144ad", "title": "Error", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Reference", "Error", "JavaScript"], "summary": "\u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 <strong><code>Error</code></strong> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043e\u0448\u0438\u0431\u043a\u0438. \u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <code>Error</code> \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u041e\u0431\u044a\u0435\u043a\u0442 <code>Error</code> \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439. \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0438\u0436\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043e\u0448\u0438\u0431\u043e\u043a.", "localization_tags": [], "locale": "ru", "last_edit": "2018-08-02T01:20:12.441056", "review_tags": []}, {"uuid": "42b6aa17-f8ca-48a1-a228-d33f12ae7da1", "title": "Error", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["\u53c2\u8003", "Error", ");", "throw new Error(", "Whoops!"], "summary": "<span style=\"line-height: inherit;\">\u901a\u8fc7<strong>Error</strong>\u7684\u6784\u9020\u5668\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u9519\u8bef\u5bf9\u8c61\u3002\u5f53\u8fd0\u884c\u65f6\u9519\u8bef\u4ea7\u751f\u65f6\uff0cError\u7684\u5b9e\u4f8b\u5bf9\u8c61\u4f1a\u88ab\u629b\u51fa\u3002Error\u5bf9\u8c61</span>\u4e5f<span style=\"line-height: inherit;\">\u53ef\u7528\u4e8e\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u7684\u57fa\u7840\u5bf9\u8c61\u3002\u4e0b\u9762\u5217\u51fa\u4e86\u5404\u79cd\u5185\u5efa\u7684\u6807\u51c6\u9519\u8bef\u7c7b\u578b\u3002</span>", "localization_tags": [], "locale": "zh-CN", "last_edit": "2018-01-15T00:09:43.981695", "review_tags": []}, {"uuid": "60e54a42-6ec6-43b4-985c-701f003feb7e", "title": "Error", "url": "/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Error", "tags": ["Reference", "TopicStub", "NeedsTranslation", "Error", "JavaScript"], "summary": "<strong><code>Error</code></strong>\u00a0\u5efa\u69cb\u51fd\u5f0f\u80fd\u7528\u4f86\u5efa\u7acb\u4e00\u500b error \u7269\u4ef6\u3002\u7576\u57f7\u884c\u671f\u9593\u767c\u751f\u932f\u8aa4\u6642\uff0c<code>Error</code>\u00a0\u7269\u4ef6\u5be6\u9ad4\u6703\u88ab\u62cb\u51fa\u3002<code>Error</code>\u00a0\u7269\u4ef6\u4e5f\u53ef\u4f5c\u70ba\u81ea\u8a02\u4f8b\u5916\u7684\u57fa\u790e\u7269\u4ef6\uff0c\u8acb\u53c3\u8003\u4e0b\u65b9\u7684\u6a19\u6e96\u5167\u5efa\u932f\u8aa4\u985e\u578b\u3002", "localization_tags": ["inprogress"], "locale": "zh-TW", "last_edit": "2017-09-12T04:57:17.809859", "review_tags": []}], "modified": "2018-10-01T19:02:06.256851", "label": "L\u1ed7i", "localization_tags": ["inprogress"], "locale": "vi", "id": 227247, "last_edit": "2018-02-05T01:28:27.568244", "summary": "The <strong><code>Error</code></strong> constructor creates an error object. Instances of <code>Error</code> objects are thrown when runtime errors occur. The <code>Error</code> object can also be used as a base object\u00a0for user-defined exceptions. See below for standard built-in error types.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Description", "title": "Description"}, {"id": "Used_as_a_function", "title": "Used as a function"}, {"id": "Error_types", "title": "Error types"}, {"id": "Properties", "title": "Properties"}, {"id": "Methods", "title": "Methods"}, {"id": "Error_instances", "title": "Error instances"}, {"id": "Properties_2", "title": "Properties"}, {"id": "Standard_properties", "title": "Standard properties"}, {"id": "Vendor-specific_extensions", "title": "Vendor-specific extensions"}, {"id": "Microsoft", "title": "Microsoft"}, {"id": "Mozilla", "title": "Mozilla"}, {"id": "Methods_2", "title": "Methods"}, {"id": "Examples", "title": "Examples"}, {"id": "Throwing_a_generic_error", "title": "Throwing a generic error"}, {"id": "Handling_a_specific_error", "title": "Handling a specific error"}, {"id": "Custom_Error_Types", "title": "Custom Error Types"}, {"id": "ES6_Custom_Error_Class", "title": "ES6 Custom Error\u00a0Class"}, {"id": "ES5_Custom_Error_Object", "title": "ES5 Custom Error Object"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "sect1", "title": null}, {"id": "Legend", "title": "Legend"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Global_Objects/loi", "review_tags": []}