You even can use PDO::ERRMODE_EXCEPTION as the second argument. It will fire exceptions and let you cathc them when you need.