try {

    }catch (PDOException $e){
    echo $e->getMessage();
    }

    pdo抛出异常 - 图1