cvs: phpdoc /en/language exceptions.xml

From: Date: Sat, 15 Nov 2008 18:39:46 +0000
Subject: cvs: phpdoc /en/language exceptions.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2564@lists.php.net to get a copy of this message
bjori Sat Nov 15 18:39:46 2008 UTC Modified files: /phpdoc/en/language exceptions.xml Log: - Only modern *object oriented* extensions possibly use exceptions - Add a tip about the pre-existing SPL exceptions http://cvs.php.net/viewvc.cgi/phpdoc/en/language/exceptions.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/language/exceptions.xml diff -u phpdoc/en/language/exceptions.xml:1.7 phpdoc/en/language/exceptions.xml:1.8 --- phpdoc/en/language/exceptions.xml:1.7 Tue Nov 4 17:04:29 2008 +++ phpdoc/en/language/exceptions.xml Sat Nov 15 18:39:46 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <chapter xml:id="language.exceptions" xmlns="http://docbook.org/ns/docbook"> <title>Exceptions</title> @@ -27,12 +27,19 @@ </para> <note> <para> - Internal PHP functions mainly use <link - linkend="ini.error-reporting">Error reporting</link>, only modern + Internal PHP functions mainly use + <link linkend="ini.error-reporting">Error reporting</link>, only modern + <link linkend="language.oop5">Object oriented</link> extensions use exceptions. However, errors can be simply translated to exceptions with <link linkend="class.errorexception">ErrorException</link>. </para> </note> + <tip> + <para> + The <link linkend="intro.spl">Standard PHP Library (SPL)</link> provides a + good number of built-in exceptions. + </para> + </tip> <example> <title>Throwing an Exception</title> <programlisting role="php">

« previous php.doc.cvs (#2564) next »