PHP Throw Exception Dapatkan pesan

try {
  // code...
} catch (\Throwable $th) {
  var_dump($th->getMessage());
}
patrick204nqh