If I remember rightly and unless things have changed since I looked at this last you can't get at the specific error code that caused the failure, you need to query the embedded PDO object to get its last error but you can't get at it through XPDO. I may have raised a ticket on this, its definitely on the forums somewhere.
Use MODx, or the cat gets it!
I think this was the problem, you couldn't get at it using the XPDO Api, so you couldn't query it for its last error and XPDO doesn't make this available either.
Use MODx, or the cat gets it!