Added PDO error code
Setting the exception code in the constructor
Merge pull request #1221 from arisk/patch-1

Added PDO error code