Why is catch(Exception) almost always a bad idea?
Answers were Sorted based on User's Feedback
Answer / subasini
Catch(Exception) is Bad Because Of It supress your Fault in
the coding
Is This Answer Correct ? | 4 Yes | 2 No |
if you know what kind of error may occur in that block mean
, will it be right to use catch block without handling the
proper validation?
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / nagaraj
Catch(Exception) means that you catch all the exception
which might not occur. But, really we need to catch only
some type of exception, so we need to catch only those type
instead of catching all the exceptions.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anna
it's not the bad idea of using catch exception.
catch exception catches all the exceptions in try block.
if we use these blocks, we will be able to know where the
exact error is.
if we use one try block, we must use the catch block .
Is This Answer Correct ? | 6 Yes | 6 No |
and can u telme how to explain about our job profile if i have 3years of it experiance in dotnet domain and where to start and where to end , and what shoul i tel and what not(can i mention my education ,and family details,......)i am confusiong a lot. can i ask one with your permision, if u have question that u u went tcs interview as 3+years exp so he/she asked tel me about your profile how can u tel and where to stop. please help me as simple as possible i am facing lot in this..............plese can anyone help me i am awaiting for your reply.
What is globalization and localization in asp net?
How to find the client browser type ?
4 Answers AQA, Cognizant, Satyam,
Could u send me the answer for this question as soon as possible. Im using 'System.net.mail.mailmessage' namespace for sending a mail from my application. What should I mention in 'system.net.mail.mailmessage.to' property and What should I mention in 'system.net.mail.mailmessage.from' property.
How to migrate from sqlserver 2005 to sql server 2000 (every one know reverse process of that )
What is aspect-oriented programming?
AJAX - explain the concept and some controls like update panel, tabcontrol etc
In which situation can you not use a viewstate?
How to authenticate users using web.config ?
2 Answers Accenture, Amazon, BirlaSoft, Cap Gemini,
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
how can i insert array values and retreive in asp.net
what are the attributes of sitemapnode?