摘要: 在硬菜的烹饪过程中, 需要用到try catch 因为可以捕捉到exception message, 并且符合其他Object oriented写法, 既可以收集到别人写的message也可以自己写message方便,而且不打扰其他代码的运行, 方便调试代码。 阅读全文
posted @ 2017-12-13 11:34 qqisnow2021 阅读(268) 评论(0) 推荐(0)
摘要: try { echo $abc + 1 . "\n"; } catch (Exception $e) { echo 'Caught exception: qinqiu ', $e->getMessage(), "\n"; throw new Exception('try a gain'); } fi 阅读全文
posted @ 2017-12-13 10:27 qqisnow2021 阅读(505) 评论(0) 推荐(0)