Home > DeveloperSection > Interviews > Why is it a bad idea to throw your own exceptions?

Posted on    July-01-2011 1:06 AM

 C# C# 
 1 Answer(s)
  1446  View(s)
Rate this:

James Smith

Total Post:79

Posted on    July-01-2011 12:00 AM

Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.

Don't want to miss updates? Please click the below button!

Follow MindStick