What is the best workflow taken when connection error occurs. Let say we have a client that connects to the middle tier.
class MyClient{
...
void callServer(){
try{
middletier.saveRecord(123);
}catch(...){
// log the error
// what to do next (notify the user, take the same step again)?
// reinitialize connection ?
}
}
}
What to do if the connection error occured (time out, broken connection ...)
Should I notify the user that the connection has a problem and to try again? Can something be done automatically, and transparent for the user ?
All I like is, not to bother the user with errors and then to tell the user what to do next.
So what is the best workflow for handling such errors ?