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

Answer Posted / pradeep

Hi Swapna,

throwing our Own Exception does not Means that there is
Design Flaws,

Assume that your application Involves DB Operation,

EG:

It Reads Data from an MSACCESS file,

and you are connecting the D.B through you program,

but can u tell me, what will happen if somebody/some other
application Exclusively opened the Access file before ur
Program,
----------------
A wise Programmer will foresee this Issue, and will Create
his own Exception Handler, which will instruct his User to
close that MSACCESS file,

----

So SWAPNA pls Grow UP, and try to think like how MEN Do,..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c# good for games?

716


Can struct be static in c#?

703


Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana

1688


What is c# and why it is used for?

689


Why to use “finally” block in c#?

725


What is a class level variable in c#?

704


Can you drink alcohol with a loop recorder?

683


Is vs as c#?

692


What do you know about device context?

714


What is callback method in c#?

653


what is the Difference between the public and private ?

695


What are the types of access modifiers?

662


What's the difference between system.string and system.text.stringbuilder classes?

725


Why linq is having select clause at the end?

695


What is c# best for?

698