language/predefined/exception/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="exception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>Exception::__construct</refname>
...
...
@@ -9,11 +8,11 @@
9
8
10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<constructorsynopsis>
11
+
<constructorsynopsis role="Exception">
13
12
<modifier>public</modifier> <methodname>Exception::__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>Throwable</type><parameter>previous</parameter><initializer>&null;</initializer></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>Throwable</type><type>null</type></type><parameter>previous</parameter><initializer>&null;</initializer></methodparam>
17
16
</constructorsynopsis>
18
17
<para>
19
18
Constructs the Exception.
...
...
@@ -50,36 +49,12 @@
50
49
</varlistentry>
51
50
</variablelist>
52
51
</para>
53
-
</refsect1>
54
-
55
-
<refsect1 role="changelog">
56
-
&reftitle.changelog;
57
-
<para>
58
-
<informaltable>
59
-
<tgroup cols="2">
60
-
<thead>
61
-
<row>
62
-
<entry>&Version;</entry>
63
-
<entry>&Description;</entry>
64
-
</row>
65
-
</thead>
66
-
<tbody>
67
-
<row>
68
-
<entry>7.0.0</entry>
69
-
<entry>
70
-
The <parameter>previous</parameter> parameter is now of type <type>Throwable</type>.
71
-
</entry>
72
-
</row>
73
-
<row>
74
-
<entry>5.3.0</entry>
75
-
<entry>
76
-
The <parameter>previous</parameter> parameter was added.
77
-
</entry>
78
-
</row>
79
-
</tbody>
80
-
</tgroup>
81
-
</informaltable>
82
-
</para>
52
+
<note>
53
+
<simpara>
54
+
Calling the constructor of class Exception from a subclass ignores the
55
+
default arguments, if the properties $code and $message are already set.
56
+
</simpara>
57
+
</note>
83
58
</refsect1>
84
59

85
60
<refsect1 role="notes">
...
...
@@ -93,7 +68,6 @@
93
68
</refsect1>
94
69
95
70
</refentry>
96
-
97
71
<!-- Keep this comment at the end of the file
98
72
Local variables:
99
73
mode: sgml
...
...
@@ -114,4 +88,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
114
88
vim: et tw=78 syn=sgml
115
89
vi: ts=1 sw=1
116
90
-->
117
-

118
91