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
Last revisionBoth sides next 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 [2009/09/22 22:05] – fix typo ashnazg
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.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1