cvs: phpdoc /en/language/oop5 exceptions.xml

From: Date: Sun, 10 Oct 2004 07:48:47 +0000
Subject: cvs: phpdoc /en/language/oop5 exceptions.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364474@lists.php.net to get a copy of this message
aidan Sun Oct 10 03:48:47 2004 EDT Modified files: /phpdoc/en/language/oop5 exceptions.xml Log: Made the example a little simpler. http://cvs.php.net/diff.php/phpdoc/en/language/oop5/exceptions.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/language/oop5/exceptions.xml diff -u phpdoc/en/language/oop5/exceptions.xml:1.7 phpdoc/en/language/oop5/exceptions.xml:1.8 --- phpdoc/en/language/oop5/exceptions.xml:1.7 Sat Oct 2 05:40:50 2004 +++ phpdoc/en/language/oop5/exceptions.xml Sun Oct 10 03:48:42 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <sect1 id="language.oop5.exceptions"> <title>Exceptions</title> @@ -26,13 +26,15 @@ $error = 'Always throw this error'; throw new Exception($error); - // code following an exception isn't executed. + // Code following an exception is not executed. echo 'Never executed'; + } catch (Exception $e) { - echo "Caught exception: ", $e, "\n"; + echo 'Caught exception: ', $e->getMessage(), "\n"; } // Continue execution +echo 'Hello World'; ?> ]]> </programlisting>

« previous php.doc (#969364474) next »