posted 11 years ago
Hi, I have the following code, where a call to a different method is made each time and the same exception is caught by each method. If the exception is thrown a call is made to the logError method with an int value defining the reason for the error. The logError method cannot be changed neither can the type of exception which each of the methods throw.
I have about 6 or 7 of these methods being called and feel there must be a more robust way of doing it, does anyone have any suggestions as to how it could be made neater.