Library tutorials & articles
Exception Handling In C#
- Introduction
- Try... Catch
- Exception Types
- Throwing an error
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.
Related articles
Related discussion
-
Help me how to dynamic create row column of TableLayoutpanel at run time ??????
by anatha1 (0 replies)
-
Very Urgent regarding deleting the images from a folder
by rameshbandi (2 replies)
-
How to Export Datagridview contents to Excel
by BarbaMariolino (8 replies)
-
Help accessing sound card
by daz4904 (0 replies)
-
How to Write a GPS Application
by stoyac (19 replies)
Related podcasts
-
Object-Oriented Programming in Ruby
In this episode, I talk with Scott Bellware about object-oriented programming in Ruby, and Ruby's object model. This is taken from a private conversation, and the audio quality suffers at times. Much thanks to Scott for allowing this to be released.This episode of the Alt.NET Podcast is bro...
This article has errors at the please don't publish articles with errors.
Thanks
Sri
reinstall both os and software..and add urself in degbugger group
vxy
hi reinstall windows and remove and install .net and add urself in debugger gruops.
This article has errors at the please don't publish articles with errors.
Thanks
Sri
This thread is for discussions of Exception Handling In C#.