English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-07-03 19:32:26 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Practically any program including c# .net can have some amount of errors. They can be broadly classified as compile-time errors and runtime errors. Compile-time errors are errors that can be found during compilation process of source code. Most of them are syntax errors. Runtime errors happen when program is running. It is very difficult to find and debug the run-time errors. These errors also called exceptions. Rules of good coding style say that program must be able to handle any runtime error. Exception generates an exception call at runtime. Exceptions in C# can be called using two methods: 1. Using the throw operator. It call the manage code anyway and process an exception. 2. If using the operators goes awry, it can generate an exception.

Read more on C# .Net Tutorial Exceptions at http://www.buzzycode.com/ShowArticles-id_613.aspx

2007-07-03 19:48:43 · answer #1 · answered by jinmanusa 2 · 0 0

Exceptions are things that you do not expect to happen as normal flow of your programming logic but can reasonably happen during the time a program is running.

An example of that in real life would be the phone rings during your time of preparing a meal; in computer it could be a read-only file during a normal operation of writing some modification to that file.

In C# the syntax of dealing one is similar to Java.

2007-07-04 03:01:18 · answer #2 · answered by Andy T 7 · 0 0

fedest.com, questions and answers