Click here to Skip to main content
15,913,773 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
OriginalGriff20-Jun-15 3:27
mveOriginalGriff20-Jun-15 3:27 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
ZurdoDev20-Jun-15 5:03
professionalZurdoDev20-Jun-15 5:03 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
Mike Hankey20-Jun-15 3:58
mveMike Hankey20-Jun-15 3:58 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
Jacquers20-Jun-15 4:24
Jacquers20-Jun-15 4:24 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
CPallini20-Jun-15 5:03
mveCPallini20-Jun-15 5:03 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
PIEBALDconsult20-Jun-15 5:52
mvePIEBALDconsult20-Jun-15 5:52 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
Marc Clifton20-Jun-15 10:33
mvaMarc Clifton20-Jun-15 10:33 
GeneralRe: Multiple Catch blocks that do the same thing... Pin
_Maxxx_21-Jun-15 3:19
professional_Maxxx_21-Jun-15 3:19 
I'd lay odds that the original programmer thought he may 'legitimately' get a socketException error, so catches it and handles it appropriately. (though in this case, just logs it)
But then wants to catch and log any other exception, just in case.

So the fault is in the fact that in the 1st catch he should probably have been putting some relevant code (I dunno - pop up a message to the user or something) as it is an 'expected' exception.

As I think Marc said - looks like a TODO is missing!
PooperPig - Coming Soon

RantGet Windows 10... Pin
Sascha Lefèvre20-Jun-15 2:08
professionalSascha Lefèvre20-Jun-15 2:08 
GeneralRe: Get Windows 10... Pin
Ron Anders20-Jun-15 3:09
Ron Anders20-Jun-15 3:09 
GeneralRe: Get Windows 10... Pin
DaveX8620-Jun-15 4:52
DaveX8620-Jun-15 4:52 
GeneralRe: Get Windows 10... Pin
Sascha Lefèvre20-Jun-15 5:22
professionalSascha Lefèvre20-Jun-15 5:22 
GeneralRe: Get Windows 10... Pin
Eddy Vluggen20-Jun-15 6:28
professionalEddy Vluggen20-Jun-15 6:28 
GeneralRe: Get Windows 10... Pin
Sascha Lefèvre20-Jun-15 6:53
professionalSascha Lefèvre20-Jun-15 6:53 
GeneralMicrosoft Service Agreement (New) Pin
Member 371720420-Jun-15 2:04
Member 371720420-Jun-15 2:04 
GeneralRe: Microsoft Service Agreement (New) Pin
PIEBALDconsult20-Jun-15 11:13
mvePIEBALDconsult20-Jun-15 11:13 
GeneralRe: Microsoft Service Agreement (New) Pin
Member 371720420-Jun-15 14:43
Member 371720420-Jun-15 14:43 
GeneralRe: Microsoft Service Agreement (New) Pin
Cristian Amarie20-Jun-15 19:58
Cristian Amarie20-Jun-15 19:58 
GeneralRe: Microsoft Service Agreement (New) Pin
theboyetronic21-Jun-15 22:27
theboyetronic21-Jun-15 22:27 
RantThere are times, microsoft... Pin
OriginalGriff20-Jun-15 1:14
mveOriginalGriff20-Jun-15 1:14 
GeneralRe: There are times, microsoft... Pin
Sander Rossel20-Jun-15 1:21
professionalSander Rossel20-Jun-15 1:21 
GeneralRe: There are times, microsoft... Pin
OriginalGriff20-Jun-15 1:32
mveOriginalGriff20-Jun-15 1:32 
GeneralRe: There are times, microsoft... Pin
Phil J Pearson20-Jun-15 1:29
Phil J Pearson20-Jun-15 1:29 
GeneralRe: There are times, microsoft... Pin
OriginalGriff20-Jun-15 1:31
mveOriginalGriff20-Jun-15 1:31 
GeneralRe: There are times, microsoft... Pin
OriginalGriff20-Jun-15 1:36
mveOriginalGriff20-Jun-15 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.