.NET exceptions, error handling for the exceptional case(blog.typps.com)
submitted by
alessandrokicks(195) 1 year, 1 month ago
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.
|category: Tips & Tricks
|Views: 3
tags:
Tips another
Everyones tags:
Your Tags: