Welcome to AspAdvice Sign in | Join | Help

Don't eat exceptions

This is very bad!


try

{

    //do something that will throw an exception, like try to commit data to a database with malformed sql

}

 catch

{

    //sweep the dirt under the rug ;)

}

 

Consequences/Results - Your boss will not see any exceptions or code crashes, but it might come back to bite you in the butt when the code doesn't do what it was supposed to!

Additional Sources

Sponsor
Published Tuesday, May 15, 2007 3:33 PM by salibhai
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 
Enter the code you see below