Skip to content

Commit

Permalink
errorfunc section sync with EN
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Apr 17, 2024
1 parent 5120b5e commit 529ffb4
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions reference/errorfunc/functions/trigger-error.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: c44475e1fafcbee203ed4935a6d5d7a01379fcdc Maintainer: yannick Status: ready -->
<!-- EN-Revision: d715365c098db000eaf7dcd987ee6093f6e83091 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.trigger-error" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand All @@ -11,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>trigger_error</methodname>
<type>true</type><methodname>trigger_error</methodname>
<methodparam><type>string</type><parameter>message</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>error_level</parameter><initializer><constant>E_USER_NOTICE</constant></initializer></methodparam>
</methodsynopsis>
Expand Down Expand Up @@ -59,11 +59,43 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Cette fonction retourne &false; si un paramètre incorrect est passé à
<parameter>error_level</parameter>, &true; sinon.
&return.true.always;
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
Cette fonction lance une <classname>ValueError</classname> si le
<parameter>error_level</parameter> n'est pas l'un des
<constant>E_USER_ERROR</constant>, <constant>E_USER_WARNING</constant>,
<constant>E_USER_NOTICE</constant>, <constant>E_USER_DEPRECATED</constant>.
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
La fonction lance désormais une <classname>ValueError</classname> si un
<parameter>error_level</parameter> invalide est spécifié. Auparavant, elle retournait &false;.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down

0 comments on commit 529ffb4

Please sign in to comment.