.NET exceptions, error handling for the exceptional case

added by alessandrokicks
4/18/2011 4:34:28 AM

117 Views

The tip of the day consists of in making sure to use a try/catch block to trap individual exception types such as SqlException which is specific whereas Exception is more general. For instance, imagine you are connecting to a database, it's quite common to experience a connection failure that you might not expect. So it makes sense to try to handle any unexpected connection failures.


0 comments