📜  php throw exception get message - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:02.398000             🧑  作者: Mango

代码示例1
try {
  // code...
} catch (\Throwable $th) {
  var_dump($th->getMessage());
}