zendframework/zf2 — pull request #878 by robertbasic (2012-03-03 10:48:44+00:00)
Title: Access the error message and pass that on to the exception. fixes zf2-187

Hi!

This is a fix for ZF2-187 [1].

I used this approach as similar has been done in the same file here: https://github.com/zendframework/zf2/blob/master/library/Zend/Db/Adapter/Driver/Pdo/Statement.php#L178

[1] http://framework.zend.com/issues/browse/ZF2-187