We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 22,859 times

Contents

Related Categories

Exception Handling In C# - Introduction

Introduction

Definition: "Exception is a runtime error which arises because of abnormal conditions in a code sequence". In C# Exception is a class in the system namespace. An object of an exception is that describe the exceptional conditions occur in a code That means, we are catching an exception, creating an object of it, and then throwing it. C# supports exceptions in a very much the same way as Java and C++.

Before going into detail, I must say the usefulness of knowing and performing exception handling :

  • They cannot be ignored, as if calling code does not handle the error, it causes program termination.
  • They do not need to be to be handled at the point where error took place. This makes them very suitable for library or system code, which can signal an error and leave us to handle it
  • They can be used when passing back a return value cannot be used.

I am 22 male. BS(Computer Science), MCSE, Brainbench certifed. Member of .NET Open source, Mono Project. E-author on various websites, including www.dotnetextreme.com, www.csharphelp.com and so on. Currently working as a asst. network engineer, and as a freelance programmer, programming in Microsoft.NET platform. Love to use linux box with my NT-Machine.

Comments

  • Posted by jamalimurtaza on 27 Nov 2005

    [quote][1]Posted by [b]syedhara[/b] on 6 Aug 2002 05:03 PM[/1]
    This article has errors at the please don't publish articles with errors.
    Thanks
    Sri
    [/quote]

    reinstall both os and software..and ...

  • hi

    Posted by jamalimurtaza on 27 Nov 2005

    hi reinstall windows and remove and install .net and add urself in debugger gruops.

  • hi

    Posted by jamalimurtaza on 27 Nov 2005

    hi reinstall windows and remove and install .net and add urself in debugger gruops.

  • Exception Handling in c#

    Posted by syedhara on 06 Aug 2002

    This article has errors at the please don't publish articles with errors.
    Thanks
    Sri