Tutorials
Resources
Forum
Reviews
Communities
Interview
Jobs
Projects
Training
Your
Ad
Here
Silverlight Games
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Polls
|
Revenue Sharing
|
Lobby
|
Gift Shop
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Prafulla
(48)
Pawan
(40)
Asheej T K
(26)
Last 7 Days
Alwyn
(739)
nishithraj
(512)
Manindra Upadh...
(438)
more...
Resources
»
Articles
»
ASP.NET/Web Applications
»
Exception Handling Mechanism
Posted Date: 01 Dec 2008
Resource Type:
Articles
Category:
ASP.NET/Web Applications
Author:
gowthami chowdary
Member Level:
Gold
Rating:
Points
: 8
When we write the code and execute, there are three possibilities of error occurrence.
1.Syntactical errors
2.Compilation errors
3.Run time errors
1.Syntactical errors:
These errors will occur by typing wrong syntax like missing codes, missing terminator, wrong spelling for keywords...etc. These errors can be identified by the programmer at the time of typing code and can be rectified. These errors do not cause any harm to the program execution.
2.Compilation errors:
These errors will occur when we compile our program. These errors are like
->Creating an object to abstract class
->Missing return type for a function
->Calling a function with different number of arguments or by passing different type of values etc.
->This error can be identified at the time of compilation of the program and can be rectified.
These errors do not cause any harm to the program execution.
3.Run time errors:
These errors occur when we run the program.
Then these errors are like:-
Assigning/entering wrong input values.
Accessing invalid index values.
Trying to open a file for which there is no permission.
Trying to access data base with wrong password...etc
When any run time error occurs program execution will be terminated abnormally with out ant message. It is not possible to rectify runtime error. So we handle a run time error.
Exception:
A run time error is known as an exception.
Exception Handling:
As exception cannot be identified and rectified. So we handle the exception to avoid abnormal termination of the program execution and to display appropriate message to the user that’s why error has been occurred.
Methods to handle an exception:
.Net supports three methods to handle exceptions.
1.Logical Implementation
2.On-Error go to method
3.Try-catch Implementation
By using these three methods you can handle those errors depends on their type.
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
to add tags.
.Net
.
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
Process of adding RSS to website
Previous Resource:
AutoEventWireup property in asp.net
Return to Discussion Resource Index
Post New Resource
Category:
ASP.NET/Web Applications
Post resources and
earn money
!
More Resources
Process of adding RSS to website
GridView FAQ's
Code execution process in ASP.Net
String Objects Using in c#
Brief description of Access Modifiers
Use of ASP.NET Application Folders
dotNet Slackers
About Us
Contact Us
Privacy Policy
Terms Of Use