<!DOCTYPE html>
<html>
<body>
<?php
try {
throw new Exception("发生了一个错误");
} catch(Exception $e) {
echo $e->getLine();
}
?>
</body>
</html>