very exception class derives from the base class System.Exception.The .net Framework is full of predefined exception classes, such as NullReferenceException, IOException, SqlException, and so on. The Exception class includes the essential functionality for identifying any …
Read More »Error Handling in ASP.NET 4.5
Handling Exceptions
Handling Exceptions The first line of protection in an application is to check for potential error conditions before performing an operation. For example, a program can explicitly check whether the divisor is 0 before performing …
Read More »Catching Specific Exception
The Structured exception handling is particularly flexible because it allows you to catch specific types of exceptions. To do so, you Add multiple catch statement, each one identifying the type of exception (and providing a …
Read More »Mastering Exception
Mastering Exception When you are working with the structured exception handling keep some points in your mind: Break down your code into multiple try/catch blocks If you kept all your code into one exception handler, …
Read More »