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] – include a full code example that contrasts base exception interface with base exception class ashnazgpear:rfc:pear2_exception_policy [2009/09/22 22:05] – fix typo ashnazg
Line 3: Line 3:
 ==== Document Information ==== ==== Document Information ====
   * Title: PEAR2 Exception Policy   * Title: PEAR2 Exception Policy
-  * Version: 1.0.0+  * Version: 1.0.1
   * Status: Ratified   * Status: Ratified
   * 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: November 12th2008+  * Last updated: September 22nd2009
   * 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