Why is it a bad idea to throw your own exceptions?

Answer Posted / supratim sengupta

Actually throwing your own exceptions is an excellent way
to handle various exceptions the way you want it to handle.
You can centralize the whole exception handling. It could
be useful in product development where you might miss out
some exception conditions and then you can always write a
common custom exception handler that can shoot you an email
with all the details of the exception.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of protected in c#?

489


Why constructor is used in c#?

485


Explain about Serialize and MarshalByRef?

546


How do I create multifile assembly?

500


What is data set in c#?

497






Can a method return multiple values in c#?

447


What is polymorphism and its types in c#?

456


What are the classes contained in a single .NET DLL ?

506


What is _viewstart cshtml?

472


How does bitwise xor work?

467


What is hashtable in c# with example?

495


What is the data provider name to connect to access database?

498


What is data quality assurance?

441


Which of the following operations can you not perform on an ado.net dataset?

509


What is assembly version series sequence?

538