Why is it a bad idea to throw your own exceptions?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shirshak
Both of you are correct. Don't fight like two cats for a
chapati or a monkey will take away your chapati
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / raj
Hi pradeep
if your DB can be opened by other program or application
then what is the security in it
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do we use struct in c#?
What is the use of parse in c#?
What is expression c#?
Explain inheritance in c#?
What?s the implicit name of the parameter that gets passed into the class? set method?
How to sign an assembly with strong name?
Can multiple catch blocks be executed?
what are value types and reference types? where they are stored?
What is the syntax for calling an overloaded constructor within a constructor?
What is the benefit of delegate in c#?
What is addressof operator?
I created a class which is inherited from interface IDisposable. Now if I use object of this class with using keyword. Then How the dispose method will get call. Does garbage collector call it or some else.
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)