{"json_modified": "2015-09-27T05:35:01.013417", "slug": "Web/JavaScript/Referencia/Sentencies/throw", "tags": [], "locale": "ca", "title": "throw", "translations": [{"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": "2015-07-14T04:06:53", "review_tags": []}, {"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": "2015-08-25T04:15:18", "review_tags": []}, {"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": []}, {"title": "throw", "url": "/ja/docs/Web/JavaScript/Reference/Statements/throw", "tags": [], "summary": "\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u4f8b\u5916\u3092\u6295\u3052\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-17T01:17:18", "review_tags": []}, {"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": "2014-11-19T12:02:29", "review_tags": []}, {"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": "2015-05-22T10:12:42", "review_tags": []}, {"title": "throw", "url": "/ru/docs/Web/JavaScript/Reference/Statements/throw", "tags": [], "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": ["inprogress"], "locale": "ru", "last_edit": "2014-11-19T12:07:18", "review_tags": []}], "modified": "2015-09-27T05:34:59", "label": "throw", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Sentencies/throw", "last_edit": "2015-09-27T05:34:53", "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.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Sintaxi", "title": "Sintaxi"}, {"id": "Descripci\u00f3", "title": "Descripci\u00f3"}, {"id": "Exemples", "title": "Exemples"}, {"id": "Llen\u00e7a_un_objecte", "title": "Llen\u00e7a un objecte"}, {"id": "Un_altre_exemple_de_llen\u00e7ar_un_objecte", "title": "Un altre exemple de llen\u00e7ar un objecte"}, {"id": "Rellen\u00e7ar_una_excepci\u00f3", "title": "Rellen\u00e7ar una excepci\u00f3"}, {"id": "Especificacions", "title": "Especificacions"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "Vegeu_tamb\u00e9", "title": "Vegeu tamb\u00e9"}], "id": 162227, "review_tags": ["editorial"]}