Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You only write it once in your Database class. The only thing that changes from call to call is the query string and parameters. Handle all errors gracefully there, throw an error to the calling code and let it handle it to the user with a 500 while the support channel gets alerted with the real error.


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

Search: