When catching an exception on a database reading/writing operation, what specific exceptions should I try to catch in a Try-Catch construction?
try
{
MyDatabaseHandlingMethod();
}
catch (exception ex)//what to use instead of just "exception"?
{
//exception handling
}
What are those exceptions to use instead of just "exception" in case of trying to perform a database related operation? (like IOException in case of file handling operations)