You could also arrange the function as follows. In the handle error section you handle the error in a way that makes sense for your application. For example, for some errors it may be appropriate to...