diff options
| author | julieng <julien.gattelier@gmail.com> | 2021-11-15 21:45:09 +0100 |
|---|---|---|
| committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-11-15 22:10:33 +0100 |
| commit | f36cc6a7639a8f1adff02bc7a152bd7f54ceae6d (patch) | |
| tree | a977e8bdefcbd40b40cd7812628da7bd95b48e10 /files/fr/mozilla/add-ons/webextensions/api/proxy/onerror/index.html | |
| parent | 241dda7e8117b4ec0c843e3875a10e9f4aa7da7b (diff) | |
| download | translated-content-f36cc6a7639a8f1adff02bc7a152bd7f54ceae6d.tar.gz translated-content-f36cc6a7639a8f1adff02bc7a152bd7f54ceae6d.tar.bz2 translated-content-f36cc6a7639a8f1adff02bc7a152bd7f54ceae6d.zip | |
move *.html to *.md
Diffstat (limited to 'files/fr/mozilla/add-ons/webextensions/api/proxy/onerror/index.html')
| -rw-r--r-- | files/fr/mozilla/add-ons/webextensions/api/proxy/onerror/index.html | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/files/fr/mozilla/add-ons/webextensions/api/proxy/onerror/index.html b/files/fr/mozilla/add-ons/webextensions/api/proxy/onerror/index.html deleted file mode 100644 index 136451dc85..0000000000 --- a/files/fr/mozilla/add-ons/webextensions/api/proxy/onerror/index.html +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: proxy.onProxyError -slug: Mozilla/Add-ons/WebExtensions/API/proxy/onError -tags: - - API - - Add-ons - - Event - - Proxy - - Reference - - WebExtensions - - onProxyError -translation_of: Mozilla/Add-ons/WebExtensions/API/proxy/onError -original_slug: Mozilla/Add-ons/WebExtensions/API/proxy/onProxyError ---- -<div>{{AddonSidebar()}}</div> - -<p>Lancé en cas d'erreur lors de l'évaluation du fichier PAC ou l'écouteur <code>onRequest</code>.</p> - -<p>L'erreur peut être déclenchée en lançant ou renvoyant une valeur invalide dans le gestionnaire d'événements proxy.onRequest.</p> - -<h2 id="Syntaxe">Syntaxe</h2> - -<pre class="brush: js">browser.proxy.onError.addListener(listener) -browser.proxy.onError.removeListener(listener) -browser.proxy.onError.hasListener(listener) -</pre> - -<p>Les événements ont trois fonctions :</p> - -<dl> - <dt><code>addListener(listener)</code></dt> - <dd>Ajoute un écouteur à cet événement.</dd> - <dt><code>removeListener(listener)</code></dt> - <dd>Arrêtez d'écouter cet événement. L'argument <code>listener</code> est l'écouteur à supprimer.</dd> - <dt><code>hasListener(listener)</code></dt> - <dd>Vérifiez si l'<code>écouteur</code> est enregistré pour cet événement. Renvoie <code>true</code> s'il écoute, sinon <code>false</code>.</dd> -</dl> - -<h2 id="Syntaxe_addListener">Syntaxe addListener</h2> - -<h3 id="Paramètres">Paramètres</h3> - -<dl> - <dt><code>callback</code></dt> - <dd> - <p>Fonction qui sera appelée lorsque cet événement se produit. La fonction recevra les arguments suivants :</p> - - <dl> - <dt><code>newState</code></dt> - <dd><code>Object</code>. Un objet <a href="/fr/docs/Web/JavaScript/Reference/Objets_globaux/Error">Error</a> représentant l'erreur.</dd> - </dl> - </dd> -</dl> - -<p>{{WebExtExamples}}</p> - -<h2 id="Compatibilité_du_navigateur">Compatibilité du navigateur</h2> - -<p>{{Compat("webextensions.api.proxy.onError")}}</p> |
