laravel/framework — pull request #1889 by igorsantos07 (2013-07-16 15:31:08+00:00)
Title: Including a better exception for query issues

Included QueryException class, that holds SQL and Bindings. Throwing it instead of a bland Exception helps a lot developers to actually catch different problems instead of having to use a catch-all clause that informs very little about the problem.