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 |
How do u deploy your asp.net application?
What is Web Services?How we can consume a Web Services in our application?Explain.
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
What are the benefits of Razor View?
If i have a page where i create an instance of a dll and without invoking any method can I send values to next page ?
Describe session handling in a webfarm, how does it work and what are the limits?
What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What are the different kinds of assemblies?
Difference between connected architecture and Dissconnected architecture?
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?
What is state management techniques in asp.net?
which is best possible way to add data source to data grid when the data is huge(10 lack recored)how to edit a perticular row
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)