{"json_modified": "2016-10-22T00:29:50.366738", "uuid": "96da6ba0-7dcc-4eba-a9ef-e634f6295d5c", "title": "throw", "url": "/ru/docs/Web/JavaScript/Reference/Statements/throw", "tags": ["Statement", "JavaScript"], "translations": [{"uuid": "fdf18a37-8e7a-4779-97f2-a012cacee6d4", "title": "throw", "url": "/en-US/docs/Web/JavaScript/Reference/Statements/throw", "tags": ["Statement", "JavaScript"], "summary": "The throw statement throws a user-defined exception. Execution of the current function will stop (the statements after throw won't be executed), and control will be passed to the first catch block in the call stack. If no catch block exists among caller functions, the program will terminate.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-10-21T16:11:13", "review_tags": []}, {"uuid": "1adc006c-4960-4a0b-9c8a-a3b2e56a004c", "title": "throw", "url": "/ca/docs/Web/JavaScript/Referencia/Sentencies/throw", "tags": [], "summary": "La sent\u00e8ncia throw llen\u00e7a una excepci\u00f3 definida per l'usuari. L'execuci\u00f3 de la funci\u00f3 actual s'aturar\u00e0 (les sent\u00e8ncies de despr\u00e9s de throw no s'executaran) i es passar\u00e0 el control al primer bloc catch en la pila de crides. Si no existeix cap bloc catch en les funcions de crides, el programa s'acabar\u00e0.", "localization_tags": [], "locale": "ca", "last_edit": "2015-09-27T05:34:53", "review_tags": ["editorial"]}, {"uuid": "603c336a-8343-4e96-951f-67c67cac7d1a", "title": "throw", "url": "/de/docs/Web/JavaScript/Reference/Statements/throw", "tags": ["Ausnahmen", "throw", "JavaScript", "exceptions"], "summary": "Die\u00a0throw\u00a0Anweisung\u00a0\"wirft\" eine benutzerdefinierte\u00a0Exception (Ausnahme). Die Programmausf\u00fchrung der aktuellen Funktion bzw. des globalen Codes wird angehalten\u00a0(Anweisungen nach throw werden dann nicht mehr ausgef\u00fchrt), und die Programmausf\u00fchrung wird an den\u00a0n\u00e4chsth\u00f6heren\u00a0catch\u00a0Block in der Ausf\u00fchrungshierarchie \u00fcbergeben. Falls in der gesamten Ausf\u00fchrungschierarchie kein\u00a0catch\u00a0Block definiert wurde, wird das Programm komplett angehalten.", "localization_tags": [], "locale": "de", "last_edit": "2016-03-06T12:02:56", "review_tags": []}, {"uuid": "d04d7184-809b-43e1-980c-239037605383", "title": "throw", "url": "/es/docs/Web/JavaScript/Referencia/Sentencias/throw", "tags": ["Statement", "JavaScript"], "summary": "Lanza una excepcion definida por el usuario.", "localization_tags": [], "locale": "es", "last_edit": "2016-06-28T05:52:00", "review_tags": []}, {"uuid": "75edec33-8079-43cd-aef6-b4abc00a550d", "title": "throw", "url": "/fr/docs/Web/JavaScript/Reference/Instructions/throw", "tags": ["R\u00e9f\u00e9rence", "Reference", "Statement", "Exception", "JavaScript"], "summary": "L'instruction throw permet de lever une exception d\u00e9finie par l'utilisateur. L'ex\u00e9cution de la fonction courante sera stop\u00e9e (les instructions situ\u00e9es apr\u00e8s l'instruction throw ne seront pas ex\u00e9cut\u00e9es) et le contr\u00f4le sera pass\u00e9 au premier bloc catch de la pile d'appels. Si aucun bloc catch ne se trouve dans les fonctions de la pile d'appels, le programme sera termin\u00e9.", "localization_tags": [], "locale": "fr", "last_edit": "2016-02-16T04:05:44", "review_tags": []}, {"uuid": "fd6499d3-b095-435a-86c1-b1e3d41fb1a4", "title": "throw", "url": "/ja/docs/Web/JavaScript/Reference/Statements/throw", "tags": [], "summary": "throw \u6587\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u4f8b\u5916\u3092\u6295\u3052\u307e\u3059\u3002\u73fe\u5728\u306e\u95a2\u6570\u306e\u5b9f\u884c\u3092\u6b62\u3081\u3066 (throw \u306e\u5f8c\u306e\u6587\u306f\u5b9f\u884c\u3057\u307e\u305b\u3093)\u3001\u30b3\u30fc\u30eb\u30b9\u30bf\u30c3\u30af\u5185\u306e\u6700\u521d\u306e catch \u30d6\u30ed\u30c3\u30af\u306b\u5236\u5fa1\u3092\u79fb\u3057\u307e\u3059\u3002\u547c\u3073\u51fa\u3057\u5143\u306e\u95a2\u6570\u306b catch \u30d6\u30ed\u30c3\u30af\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-05-22T05:14:23", "review_tags": []}, {"uuid": "1f613600-5ca8-4f54-93bd-7e2fcfd1e871", "title": "throw", "url": "/pl/docs/Web/JavaScript/Referencje/Polecenia/throw", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Strony_wymagaj\u0105ce_dopracowania", "Wszystkie_kategorie"], "summary": "Rzuca wyj\u0105tek zdefiniowany przez u\u017cytkownika.", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:18", "review_tags": []}, {"uuid": "917b3c1b-b493-4c00-b42f-9bac56185fe4", "title": "throw", "url": "/pt-BR/docs/Web/JavaScript/Reference/Statements/throw", "tags": ["Instru\u00e7\u00e3o", "JavaScript"], "summary": "A declara\u00e7\u00e3o\u00a0throw lan\u00e7a uma exce\u00e7\u00e3o definida pelo usu\u00e1rio. A execu\u00e7\u00e3o da fun\u00e7\u00e3o atual vai parar (as instru\u00e7\u00f5es ap\u00f3s o\u00a0throw\u00a0n\u00e3o ser\u00e3o executadas), e o controle ser\u00e1 passado para o primeiro bloco catch na pilha de chamadas. Se nenhum bloco catch\u00a0existe entre as fun\u00e7\u00f5es \"chamadoras\", o programa vai terminar.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2016-08-10T11:17:58", "review_tags": []}, {"uuid": "e96dff22-ce81-4f22-bbe4-0f83ed5ab683", "title": "throw", "url": "/zh-CN/docs/Web/JavaScript/Reference/Statements/throw", "tags": ["Statement", "\u6d41\u7a0b\u63a7\u5236", "JavaScript"], "summary": "throw \u8bed\u53e5\u7528\u6765\u629b\u51fa\u7528\u6237\u81ea\u5b9a\u4e49\u5f02\u5e38\u3002\u5f53\u524d\u51fd\u6570\u7684\u6267\u884c\u5c06\u4f1a\u88ab\u4e2d\u6b62\uff08throw\u4e4b\u540e\u7684\u8bed\u53e5\u5c06\u4f1a\u5f97\u4e0d\u5230\u6267\u884c\uff09\uff0c\u63a5\u7740\u6267\u884c\u6d41\u7a0b\u4f1a\u8f6c\u79fb\u5230\u7b2c\u4e00\u4e2a\u00a0catch\u00a0\u8bed\u53e5\u5757\u3002\u5982\u679c\u5728\u8c03\u7528\u65b9\u51fd\u6570\u4e2d\u6ca1\u6709\u4efb\u4f55catch\u8bed\u53e5\u5757\uff0c\u90a3\u4e48\u7a0b\u5e8f\u5c06\u4f1a\u88ab\u4e2d\u6b62\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-09-05T01:46:24", "review_tags": []}], "modified": "2016-10-22T00:29:48", "label": "throw", "localization_tags": [], "locale": "ru", "id": 128823, "last_edit": "2016-10-22T00:29:42", "summary": "\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f throw \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u00a0\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0435\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e (\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 throw \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b), \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e \u0441\u0442\u0435\u043a\u0443 \u0432\u044b\u0437\u043e\u0432\u043e\u0432\u00a0catch\u00a0\u0431\u043b\u043e\u043a. \u0415\u0441\u043b\u0438 catch \u0431\u043b\u043e\u043a\u043e\u0432 \u0441\u0440\u0435\u0434\u0438 \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0435\u0442, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f_\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f", "title": null}, {"id": "Syntax", "title": "\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441"}, {"id": "Description", "title": "\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435"}, {"id": "Examples", "title": "\u041f\u0440\u0438\u043c\u0435\u0440\u044b"}, {"id": "Example:_Throw_an_object", "title": "\u041f\u0440\u0438\u043c\u0435\u0440: \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f"}, {"id": "Example:_Another_example_of_throwing_an_object", "title": "\u041f\u0440\u0438\u043c\u0435\u0440: \u0414\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u0432\u0438\u0434\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f"}, {"id": "Example:_Rethrow_an_exception", "title": "\u041f\u0440\u0438\u043c\u0435\u0440: \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0432\u044b\u0431\u0440\u043e\u0441 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f"}, {"id": "\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438", "title": null}, {"id": "\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435_\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b", "title": null}, {"id": "See_also", "title": null}], "slug": "Web/JavaScript/Reference/Statements/throw", "review_tags": ["editorial"]}