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

Answer Posted / guest

Not necessarily. If you're writing a library of code to be
used by other clients you don't always know the right thing
to do if an exceptional problem comes up. So it isn't always
a bad idea to throw your own exceptions.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do namespaces work?

519


Can we inherit sealed class in c#?

467


Can arraylist hold primitive types?

533


In .NET which is the smallest unit of execution?

628


Can you declare struct members as protected?

491






Why do we need generics?

513


Is object an int c#?

516


What is extended class in c#?

467


What is the difference between ienumerable and enumerator?

446


How do I port "synchronized" functions from visual j++ to c#?

480


Can you declare a field readonly?

536


Explain About .NET Remoting and types of remoting

573


How many types of serialization are there in c#?

451


What is a private class in c#?

491


What is a cshtml file?

528