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:10] – bump year too ashnazgpear:rfc:pear2_exception_policy [2017/09/22 13:28] (current) – external edit 127.0.0.1
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.1253650213.txt.gz · Last modified: 2017/09/22 13:28 (external edit)