Postgresql Exception Handling In Cpp