[PHP错误异常]⑩--错误和异常的区别

getMessage();
    echo "
"; try { throw new Exception('测试异常2'); } catch (Exception $e) { echo $e->getMessage(); } } echo "
continue..."; ?>
Paste_Image.png

你可能感兴趣的:([PHP错误异常]⑩--错误和异常的区别)