language/predefined/error/tostring.xml
09c49da6f0167fcdfe53a76e3ea28ecfc0eb337b
...
...
@@ -0,0 +1,88 @@
1
+
<?xml version="1.0" encoding="utf-8"?>
2
+
<!-- $Revision$ -->
3
+
<refentry xml:id="error.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4
+
<refnamediv>
5
+
<refname>Error::__toString</refname>
6
+
<refpurpose>String representation of the error</refpurpose>
7
+
</refnamediv>
8
+
9
+
<refsect1 role="description">
10
+
&reftitle.description;
11
+
<methodsynopsis role="Error">
12
+
<modifier>public</modifier> <type>string</type><methodname>Error::__toString</methodname>
13
+
<void/>
14
+
</methodsynopsis>
15
+
<para>
16
+
Returns the <type>string</type> representation of the error.
17
+
</para>
18
+
</refsect1>
19
+
20
+
<refsect1 role="parameters">
21
+
&reftitle.parameters;
22
+
&no.function.parameters;
23
+
</refsect1>
24
+
25
+
<refsect1 role="returnvalues">
26
+
&reftitle.returnvalues;
27
+
<para>
28
+
Returns the <type>string</type> representation of the error.
29
+
</para>
30
+
</refsect1>
31
+

32
+
<refsect1 role="examples">
33
+
&reftitle.examples;
34
+
<para>
35
+
<example>
36
+
<title><function>Error::__toString</function> example</title>
37
+
<programlisting role="php">
38
+
<![CDATA[
39
+
<?php
40
+
try {
41
+
throw new Error("Some error message");
42
+
} catch(Error $e) {
43
+
echo $e;
44
+
}
45
+
?>
46
+
]]>
47
+
</programlisting>
48
+
&example.outputs.similar;
49
+
<screen>
50
+
<![CDATA[
51
+
Error: Some error message in /home/bjori/tmp/ex.php:3
52
+
Stack trace:
53
+
#0 {main}
54
+
]]>
55
+
</screen>
56
+
</example>
57
+
</para>
58
+
</refsect1>
59
+

60
+
<refsect1 role="seealso">
61
+
&reftitle.seealso;
62
+
<para>
63
+
<simplelist>
64
+
<member><methodname>Throwable::__toString</methodname></member>
65
+
</simplelist>
66
+
</para>
67
+
</refsect1>
68
+
</refentry>
69
+
<!-- Keep this comment at the end of the file
70
+
Local variables:
71
+
mode: sgml
72
+
sgml-omittag:t
73
+
sgml-shorttag:t
74
+
sgml-minimize-attributes:nil
75
+
sgml-always-quote-attributes:t
76
+
sgml-indent-step:1
77
+
sgml-indent-data:t
78
+
indent-tabs-mode:nil
79
+
sgml-parent-document:nil
80
+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
81
+
sgml-exposed-tags:nil
82
+
sgml-local-catalogs:nil
83
+
sgml-local-ecat-files:nil
84
+
End:
85
+
vim600: syn=xml fen fdm=syntax fdl=2 si
86
+
vim: et tw=78 syn=sgml
87
+
vi: ts=1 sw=1
88
+
-->
0
89