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 |
What are custom exceptions? Why do we need them?
Does c# support parameterized properties?
Can we extend static class in c#?
What is reference types in c#?
What is a class level variable in c#?
what is accessspecifier and explation each with example?
Name any three ways to pass parameters to a method in c#?
Is unboxing an implicit conversion?
How many keyword present in C# language ?
can it possible to acees the virthual method using the override method object? plz give me the example
What is boolean method?
What is the difference between throw and throw ex?