language/predefined/errorexception/construct.xml
09c49da6f0167fcdfe53a76e3ea28ecfc0eb337b
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="errorexception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>ErrorException::__construct</refname>
...
...
@@ -9,14 +8,14 @@
9
8
10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<constructorsynopsis>
11
+
<constructorsynopsis role="ErrorException">
13
12
<modifier>public</modifier> <methodname>ErrorException::__construct</methodname>
14
13
<methodparam choice="opt"><type>string</type><parameter>message</parameter><initializer>""</initializer></methodparam>
15
14
<methodparam choice="opt"><type>int</type><parameter>code</parameter><initializer>0</initializer></methodparam>
16
-
<methodparam choice="opt"><type>int</type><parameter>severity</parameter><initializer>E_ERROR</initializer></methodparam>
17
-
<methodparam choice="opt"><type>string</type><parameter>filename</parameter><initializer>__FILE__</initializer></methodparam>
18
-
<methodparam choice="opt"><type>int</type><parameter>lineno</parameter><initializer>__LINE__</initializer></methodparam>
19
-
<methodparam choice="opt"><type>Exception</type><parameter>previous</parameter><initializer>&null;</initializer></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter>severity</parameter><initializer><constant>E_ERROR</constant></initializer></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>filename</parameter><initializer>&null;</initializer></methodparam>
17
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>line</parameter><initializer>&null;</initializer></methodparam>
18
+
<methodparam choice="opt"><type class="union"><type>Throwable</type><type>null</type></type><parameter>previous</parameter><initializer>&null;</initializer></methodparam>
20
19
</constructorsynopsis>
21
20
<para>
22
21
Constructs the Exception.
...
...
@@ -51,7 +50,7 @@
51
50
</para>
52
51
<note>
53
52
<para>
54
-
While the severity can be any <type>integer</type> value, it is intended that the
53
+
While the severity can be any <type>int</type> value, it is intended that the
55
54
<link linkend="errorfunc.constants">error constants</link> be used.
56
55
</para>
57
56
</note>
...
...
@@ -66,7 +65,7 @@
66
65
</listitem>
67
66
</varlistentry>
68
67
<varlistentry>
69
-
<term><parameter>lineno</parameter></term>
68
+
<term><parameter>line</parameter></term>
70
69
<listitem>
71
70
<para>
72
71
The line number where the exception is thrown.
...
...
@@ -87,29 +86,29 @@
87
86

88
87
<refsect1 role="changelog">
89
88
&reftitle.changelog;
90
-
<para>
91
-
<informaltable>
92
-
<tgroup cols="2">
93
-
<thead>
94
-
<row>
95
-
<entry>&Version;</entry>
96
-
<entry>&Description;</entry>
97
-
</row>
98
-
</thead>
99
-
<tbody>
100
-
<row>
101
-
<entry>5.3.0</entry>
102
-
<entry>
103
-
The <parameter>previous</parameter> parameter was added.
104
-
</entry>
105
-
</row>
106
-
</tbody>
107
-
</tgroup>
108
-
</informaltable>
109
-
</para>
89
+
<informaltable>
90
+
<tgroup cols="2">
91
+
<thead>
92
+
<row>
93
+
<entry>&Version;</entry>
94
+
<entry>&Description;</entry>
95
+
</row>
96
+
</thead>
97
+
<tbody>
98
+
<row>
99
+
<entry>8.0.0</entry>
100
+
<entry>
101
+
<parameter>filename</parameter> and <parameter>line</parameter> are nullable now.
102
+
Previously, their defaults were <constant>__FILE__</constant> and
103
+
<constant>__LINE__</constant>, respectively.
104
+
</entry>
105
+
</row>
106
+
</tbody>
107
+
</tgroup>
108
+
</informaltable>
110
109
</refsect1>
111
-
</refentry>
112
110

111
+
</refentry>
113
112
<!-- Keep this comment at the end of the file
114
113
Local variables:
115
114
mode: sgml
...
...
@@ -130,4 +129,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
130
129
vim: et tw=78 syn=sgml
131
130
vi: ts=1 sw=1
132
131
-->
133
-

134
132