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] – include a full code example that contrasts base exception interface with base exception class ashnazgpear:rfc:pear2_exception_policy [2017/09/22 13:28] (current) – external edit 127.0.0.1
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.1253650144.txt.gz · Last modified: 2017/09/22 13:28 (external edit)