Error!
Success!

.NET exceptions, error handling for the exceptional case

0
kicks

.NET exceptions, error handling for the exceptional case  (Unpublished)

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.


Kicked By:
Drop Kicked By: