php-doc-en/language/predefined/throwable.xml
Adam Harvey 9a4e00c8f0 Add Error documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337354 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:05 +00:00

83 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<phpdoc:classref xml:id="class.throwable" 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">
<title>Throwable</title>
<titleabbrev>Throwable</titleabbrev>
<partintro>
<!-- {{{ ThrowableInterface intro -->
<section xml:id="throwable.intro">
&reftitle.intro;
<para>
<classname>Throwable</classname> is the base interface for any object that
can be thrown via a &throw; statement in PHP 7, including
<classname>Error</classname> and <classname>Exception</classname>.
</para>
<note>
<para>
PHP classes cannot implement the <classname>Throwable</classname>
interface directly, and must instead extend
<classname>Exception</classname>.
</para>
</note>
</section>
<!-- }}} -->
<section xml:id="throwable.synopsis">
&reftitle.interfacesynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>Throwable</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>Throwable</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.throwable')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
</classsynopsis>
<!-- }}} -->
</section>
</partintro>
&language.predefined.throwable.getmessage;
&language.predefined.throwable.getcode;
&language.predefined.throwable.getfile;
&language.predefined.throwable.getline;
&language.predefined.throwable.gettrace;
&language.predefined.throwable.gettraceasstring;
&language.predefined.throwable.getprevious;
&language.predefined.throwable.tostring;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->