Great post. I have been spending the last two days trying all the different ways of handling PDO errors and this one is the most simple and effective I have found. Well it’s the only method I could get to actually work!