Exception handling
Designing a robust application means handling the exceptions and errors that may arise at regular intervals. The following sections cover some of the more common categories of exceptions that may be encountered. How these exceptions are dealt with depends on the design and purpose of the application. Exception handling is entirely in the hands of the application developer.
Retry on exceptions
If the data matters, our application should retry the operation when the response code indicates something other than success. For applications with an end user, it may be sufficient to guide the user through a series of steps to retry the operation. For unattended applications, local retry queues, event logs/notifications, and increasing times between attempts may need to be implemented.
Network issues and connections being closed can result in an operation failing to reach the server. And although these should be rare, timeout exceptions can occur while an entity is being updated...