diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-09-04 00:46:12 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-09-04 00:46:12 +0900 |
| commit | fe6f6abf2b7c497bf1f97f73a82dde7cf48eb79f (patch) | |
| tree | 51b7edfc370236684a203f4e69ae67bb7d24b549 /files/fr/web/javascript/reference/global_objects/internalerror | |
| parent | 04ea4edc83cc12142ed151bbea2c65cffc8e76f6 (diff) | |
| parent | eeb07fe338cdc90092841d717919f46f9d9e3ff9 (diff) | |
| download | translated-content-fe6f6abf2b7c497bf1f97f73a82dde7cf48eb79f.tar.gz translated-content-fe6f6abf2b7c497bf1f97f73a82dde7cf48eb79f.tar.bz2 translated-content-fe6f6abf2b7c497bf1f97f73a82dde7cf48eb79f.zip | |
Merge branch 'main' into 20210818-Glossary/Type
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects/internalerror')
| -rw-r--r-- | files/fr/web/javascript/reference/global_objects/internalerror/index.html | 78 | ||||
| -rw-r--r-- | files/fr/web/javascript/reference/global_objects/internalerror/index.md | 70 |
2 files changed, 70 insertions, 78 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/internalerror/index.html b/files/fr/web/javascript/reference/global_objects/internalerror/index.html deleted file mode 100644 index 02a1e3afdd..0000000000 --- a/files/fr/web/javascript/reference/global_objects/internalerror/index.html +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: InternalError -slug: Web/JavaScript/Reference/Global_Objects/InternalError -tags: - - Error - - InternalError - - JavaScript - - Reference -translation_of: Web/JavaScript/Reference/Global_Objects/InternalError -original_slug: Web/JavaScript/Reference/Objets_globaux/InternalError ---- -<div>{{JSRef}} {{non-standard_header}}</div> - -<p>L'objet <strong><code>InternalError</code></strong> indique qu'une erreur liée au moteur JavaScript s'est produite. Par exemple <strong>"InternalError </strong>: Niveau de récursion trop important".</p> - -<h2 id="Syntaxe">Syntaxe</h2> - -<pre class="syntaxbox">new InternalError([<var>message</var>[, <var>fileName</var>[, <var>lineNumber</var>]]])</pre> - -<h3 id="Paramètres">Paramètres</h3> - -<dl> - <dt><code>message</code></dt> - <dd>Paramètre optionnel. Une description de l'erreur compréhensible pour un être humain.</dd> - <dt><code>fileName</code> {{Non-standard_inline}}</dt> - <dd>Paramètre optionnel. Le nom du fichier contenant le code à l'origine de l'erreur.</dd> - <dt><code>lineNumber</code> {{Non-standard_inline}}</dt> - <dd>Paramètre optionnel. Le numéro de la ligne du code à l'origine de l'erreur.</dd> -</dl> - -<h2 id="Description">Description</h2> - -<p>Une exception <code>InternalError</code> est levée à chaque fois qu'il se produit une erreur interne au moteur JavaScript.</p> - -<p>Le plus souvent, cette exception se produit lorsque quelque chose atteint un niveau trop élévé. Par exemple :</p> - -<ul> - <li>trop de cas dans une construction switch,</li> - <li>trop de parenthèses au sein d'une expression rationnelle,</li> - <li>un tableau littéral trop grand,</li> - <li>trop de niveaux de récursion.</li> -</ul> - -<h2 id="Propriétés">Propriétés</h2> - -<dl> - <dt>{{jsxref("InternalError.prototype")}}</dt> - <dd>Permet l'ajout de nouvelles propriétés à un objet <code>InternalError</code>.</dd> -</dl> - -<h2 id="Méthodes">Méthodes</h2> - -<p>L'objet global <code>InternalError</code> ne contient pas de méthode propre. En revanche, il hérite de certaines méthodes via sa chaîne de prototypes.</p> - -<h2 id="Instances_de_InternalError">Instances de <code>InternalError</code></h2> - -<h3 id="Propriétés_2">Propriétés</h3> - -<div>{{page("/fr/docs/JavaScript/Reference/Objets_globaux/InternalError/prototype","Properties")}}</div> - -<h3 id="Méthodes_2">Méthodes</h3> - -<div>{{page("/fr/docs/JavaScript/Reference/Objets_globaux/InternalError/prototype","Methods")}}</div> - -<h2 id="Spécifications">Spécifications</h2> - -<p>Cet objet ne fait partie d'aucune spécification.</p> - -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - -<p>{{Compat("javascript.builtins.InternalError")}}</p> - -<h2 id="Voir_aussi">Voir aussi</h2> - -<ul> - <li>{{jsxref("Error")}}</li> - <li>{{jsxref("InternalError.prototype")}}</li> -</ul> diff --git a/files/fr/web/javascript/reference/global_objects/internalerror/index.md b/files/fr/web/javascript/reference/global_objects/internalerror/index.md new file mode 100644 index 0000000000..b29240ddb4 --- /dev/null +++ b/files/fr/web/javascript/reference/global_objects/internalerror/index.md @@ -0,0 +1,70 @@ +--- +title: InternalError +slug: Web/JavaScript/Reference/Global_Objects/InternalError +tags: + - Error + - InternalError + - JavaScript + - Reference +translation_of: Web/JavaScript/Reference/Global_Objects/InternalError +original_slug: Web/JavaScript/Reference/Objets_globaux/InternalError +--- +{{JSRef}} {{non-standard_header}} + +L'objet **`InternalError`** indique qu'une erreur liée au moteur JavaScript s'est produite. Par exemple **"InternalError** : Niveau de récursion trop important". + +## Syntaxe + + new InternalError([message[, fileName[, lineNumber]]]) + +### Paramètres + +- `message` + - : Paramètre optionnel. Une description de l'erreur compréhensible pour un être humain. +- `fileName` {{Non-standard_inline}} + - : Paramètre optionnel. Le nom du fichier contenant le code à l'origine de l'erreur. +- `lineNumber` {{Non-standard_inline}} + - : Paramètre optionnel. Le numéro de la ligne du code à l'origine de l'erreur. + +## Description + +Une exception `InternalError` est levée à chaque fois qu'il se produit une erreur interne au moteur JavaScript. + +Le plus souvent, cette exception se produit lorsque quelque chose atteint un niveau trop élévé. Par exemple : + +- trop de cas dans une construction switch, +- trop de parenthèses au sein d'une expression rationnelle, +- un tableau littéral trop grand, +- trop de niveaux de récursion. + +## Propriétés + +- {{jsxref("InternalError.prototype")}} + - : Permet l'ajout de nouvelles propriétés à un objet `InternalError`. + +## Méthodes + +L'objet global `InternalError` ne contient pas de méthode propre. En revanche, il hérite de certaines méthodes via sa chaîne de prototypes. + +## Instances de `InternalError` + +### Propriétés + +{{page("/fr/docs/JavaScript/Reference/Objets_globaux/InternalError/prototype","Properties")}} + +### Méthodes + +{{page("/fr/docs/JavaScript/Reference/Objets_globaux/InternalError/prototype","Methods")}} + +## Spécifications + +Cet objet ne fait partie d'aucune spécification. + +## Compatibilité des navigateurs + +{{Compat("javascript.builtins.InternalError")}} + +## Voir aussi + +- {{jsxref("Error")}} +- {{jsxref("InternalError.prototype")}} |
