标签:weight exe font 代码 ror mes eve error ESS
try {
$error = ‘Always throw this error‘;
throw new Exception($error);
// Code following an exception is not executed.
echo ‘Never executed‘;
} catch (Exception $e) {
echo ‘Caught exception: ‘, $e->getMessage(), "\n";
}
echo ‘im here‘;
不管有没有catch里面的语句块, 都会顺序的执行到echo i m here 语句。
标签:weight exe font 代码 ror mes eve error ESS
原文地址:https://www.cnblogs.com/qinqiu/p/13202016.html