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

What are the drawbacks of extending an interface as opposed to extending a class?

547


Describe how a .net application is compiled and executed

591


Can an abstract class inherit from another abstract class c#?

629


How do I unload an application domain?

599


Can property be private in c#?

585






How many types of delegates are there in c#?

550


What does using system mean in c#?

599


What is visual c# net?

556


What is a three-tier application.

659


Differentiate between static class and singleton instance?

601


What is a interface in c#?

549


What is use of hashtable in c#?

564


Is c# code is managed or unmanaged code?

571


What are functions in c#?

576


How many bytes is an int in c#?

589