News for hackers. Stuff that matters.
Re:Exceptions (2003) by polyfractal on Sunday September 01, 2013 @06:10PM (#6312366)
Sure, but the query goes through the layer of functions that actually deals with the database connection. If an error occurs, that layer is responsible and the "higher" layers simply pass on the exception that is thrown.

Point is: the function that deals with database response should never be responsible for dealing with database connection errors.

There are no comments on this comment yet.