Tuesday, July 14, 2009

What is C# .Net Tutorial Exceptions?

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...

What is C# .Net Tutorial Exceptions?
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.


No comments:

Post a Comment