Structured Exception Handling:

While developing an application, user must have come across may unexpected and incorrect result, which we call errors. The incidence of such errors is even higher in the case of large project. We are talking about the errors that could terminate the execution of a program abruptly and even may cause the system to crash. Therefore it become important for the user to detect and manage all possible errors in the program itself to eliminate Any chances of disrupting the smooth flow of the program. The process of eliminating errors from the program is calleddebugging; by applying gooderror handlingmechanism a programmer can write robust application comfortably.

Error that occurs duringexecution of a programis calledexceptionandruntime errors. Exception is a run-time error that occurs due to some abnormal conditions that occur in a code sequence. An application with a good error andexception handlingmechanism improves the efficiency of the code.

Types Of Errors:

Errors are the incorrect result that occurs as we develop code for aprogram. The followingthree types of errorcan occur in a program.

1. Syntax Errors

2. Runtime Errors

3. Logical Errors

Exceptions:A exception is a abnormal or unexpected condition encountered by an application during the execution process. It is also called run-time error. While the compiler encounters an exception such as the exception involving the division of an integer by zero. It creates an exception user and stores the information about the error in the object. Exception handling is the mechanism to handle exception by providing an alternate executable path, when application fails to execute in the desired manner.

All exceptions are derived from the base class Exception. Exceptions are mainly of two categories in the .NET framework. First category includes the exceptions generated by common language runtime (CLR) and such exception are called system exceptions. The exception belonging to this category are derived from the system exception class. The second category is generated by a user’s program and the exceptions in this category are called application exceptions. The exceptions in this category are derived from the ApplicationException class.

As already explain, the purpose ofhandling exceptionis provided by the.NET frameworkclass library, which is also the base class for all the bexception class. Each class in the exception class describes a different category of exceptions and there are various exception classes such as ApplicationException and SystemException, which have been derived from the Exception class.

While handling exception large amount of system resources and execution time are used. Therefore user should avoid handling exception for predictable events. You can handle exception suing try-catch-finally statement.

We atTranstutors.comare aware of the complexities of this topic, and therefore our online computer science tutors are available round the clock to help you. We offer a range of services

• Online homework help- to help students with the homework related to computer science

• Online assignment help– to help students with their assignments.

So if you are you in need of statisticsHomework Help/ computer science AssignmentHelp? Our competent pools of computer science professionals are available 24*7 to give you a solution to your problem.