reference/pdo/pdoexception.xml
14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60
...
...
@@ -1,10 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
-
<phpdoc:exceptionref xml:id="class.pdoexception" xmlns="http://docbook.org/ns/docbook"
5
-
xmlns:xlink="http://www.w3.org/1999/xlink"
6
-
xmlns:xi="http://www.w3.org/2001/XInclude"
7
-
xmlns:phpdoc="http://php.net/ns/phpdoc">
3
+
<phpdoc:exceptionref xml:id="class.pdoexception" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
8
4
<title>The PDOException class</title>
9
5
<titleabbrev>PDOException</titleabbrev>
10
6
...
...
@@ -26,45 +22,41 @@
26
22
&reftitle.classsynopsis;
27
23
28
24
<!-- {{{ Synopsis -->
29
-
<classsynopsis>
30
-
<ooclass><classname>PDOException</classname></ooclass>
31
-
32
-
<!-- {{{ Class synopsis -->
33
-
<classsynopsisinfo>
34
-
<ooclass>
35
-
<classname>PDOException</classname>
36
-
</ooclass>
25
+
<classsynopsis class="class">
26
+
<ooexception>
27
+
<exceptionname>PDOException</exceptionname>
28
+
</ooexception>
37
29

38
-
<ooclass>
39
-
<modifier>extends</modifier>
40
-
<classname>RuntimeException</classname>
41
-
</ooclass>
42
-
43
-
</classsynopsisinfo>
44
-
<!-- }}} -->
30
+
<ooclass>
31
+
<modifier>extends</modifier>
32
+
<classname>RuntimeException</classname>
33
+
</ooclass>
45
34

46
35
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
47
-
<fieldsynopsis><!-- {{{ errorInfo -->
48
-
<modifier>public</modifier>
49
-
<type>array</type>
50
-
<varname linkend="pdoexception.props.errorinfo">errorInfo</varname>
51
-
</fieldsynopsis><!-- }}} -->
52
-
<fieldsynopsis><!-- {{{ message -->
53
-
<modifier>protected</modifier>
54
-
<type>string</type>
55
-
<varname linkend="pdoexception.props.message">message</varname>
56
-
</fieldsynopsis><!-- }}} -->
57
-
<fieldsynopsis><!-- {{{ code -->
36
+
<fieldsynopsis>
58
37
<modifier>protected</modifier>
59
-
<type>string</type>
38
+
<type class="union"><type>int</type><type>string</type></type>
60
39
<varname linkend="pdoexception.props.code">code</varname>
61
-
</fieldsynopsis><!-- }}} -->
40
+
</fieldsynopsis>
41
+
<fieldsynopsis>
42
+
<modifier>public</modifier>
43
+
<type class="union"><type>array</type><type>null</type></type>
44
+
<varname linkend="pdoexception.props.errorinfo">errorInfo</varname>
45
+
<initializer>null</initializer>
46
+
</fieldsynopsis>
62
47

63
-
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
64
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook)
65
-
xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])"
66
-
/>
48
+
<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
49
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
50
+
<xi:fallback/>
51
+
</xi:include>
67
52

53
+
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
54
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Exception'])">
55
+
<xi:fallback/>
56
+
</xi:include>
57
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Exception'])">
58
+
<xi:fallback/>
59
+
</xi:include>
68
60
</classsynopsis>
69
61
<!-- }}} -->
70
62
...
...
@@ -78,16 +70,8 @@
78
70
<term><varname>errorInfo</varname></term>
79
71
<listitem>
80
72
<para>
81
-
Corresponds to <function>PDO::errorInfo</function> or
82
-
<function>PDOStatement::errorInfo</function>
83
-
</para>
84
-
</listitem>
85
-
</varlistentry><!-- }}} -->
86
-
<varlistentry xml:id="pdoexception.props.message"><!-- {{{ -->
87
-
<term><varname>message</varname></term>
88
-
<listitem>
89
-
<para>
90
-
Textual error message. <function>Exception::getMessage</function> to access it.
73
+
Corresponds to <methodname>PDO::errorInfo</methodname> or
74
+
<methodname>PDOStatement::errorInfo</methodname>
91
75
</para>
92
76
</listitem>
93
77
</varlistentry><!-- }}} -->
...
...
@@ -96,7 +80,7 @@
96
80
<listitem>
97
81
<para>
98
82
<literal>SQLSTATE</literal> error code. Use
99
-
<function>Exception::getCode</function> to access it.
83
+
<methodname>Exception::getCode</methodname> to access it.
100
84
</para>
101
85
</listitem>
102
86
</varlistentry><!-- }}} -->
...
...
@@ -107,7 +91,6 @@
107
91
</partintro>
108
92
109
93
</phpdoc:exceptionref>
110
-
111
94
<!-- Keep this comment at the end of the file
112
95
Local variables:
113
96
mode: sgml
...
...
@@ -128,4 +111,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
128
111
vim: et tw=78 syn=sgml
129
112
vi: ts=1 sw=1
130
113
-->
131
-

132
114