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

Which is faster iqueryable or ienumerable?

568


What is the difference between static and private constructor in c#?

460


what are implementation inheritance and interface inheritance?

519


How do I join one form to another in c#?

468


Why is ienumerable used?

502






What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?

611


Are arrays value types or reference types?

538


What is default value of bool in c#?

530


How to add controls dynamically to the form using c#.net.

478


What is use of singleton class in c#?

497


What is base class in c#?

542


What is the default value of datetime in c#?

496


2. What happened when BO object has been called?

1538


How do I convert a string to an int in c#?

522


Explain About DTS package

578