pear:rfc:pear2_exception_policy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pear:rfc:pear2_exception_policy [2009/09/22 20:09] – bump version to 1.0.1 due to new example added ashnazgpear:rfc:pear2_exception_policy [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 7: Line 7:
   * Type: Informative Document   * Type: Informative Document
   * Wiki link: http://wiki.php.net/pear/rfc/PEAR2_Exception_Policy   * Wiki link: http://wiki.php.net/pear/rfc/PEAR2_Exception_Policy
-  * Last updated: September 22nd, 2008+  * Last updated: September 22nd, 2009
   * Passed:  September 20th, 2009   * Passed:  September 20th, 2009
  
Line 181: Line 181:
     echo '  * Will catch(\bar\Exception) catch a \bar\InvalidArgumentException ???' . PHP_EOL;     echo '  * Will catch(\bar\Exception) catch a \bar\InvalidArgumentException ???' . PHP_EOL;
     $y->badArg();     $y->badArg();
-} catch (\foo\Exception $e) {+} catch (\bar\Exception $e) {
     echo '    * Caught a \bar\Exception ok, so YES... this is unexpected!' . PHP_EOL;     echo '    * Caught a \bar\Exception ok, so YES... this is unexpected!' . PHP_EOL;
 } }
pear/rfc/pear2_exception_policy.1253650198.txt.gz · Last modified: 2017/09/22 13:28 (external edit)