Hacker News new | past | comments | ask | show | jobs | submit login

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: