4 ms·
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 th
by dep_b 9y ago
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.