ASP.NET Exceptions

Exceptions are the occurrence of some conditions that changes the normal flow of execution . Exceptions are occurred in situations like your program run out of the memory , file does not exist in the given path , network connections are dropped etc.

All exceptions in the Common Language Runtime are derived from a single base class , also you can create your own custom Exception classes.

You can handle Exceptions using Try..Catch..Finally statement .The code in the finally block will execute even if there is no Exceptions occurred.



The following ASP.NET program trying to divide a number by zero.


Click the following links to see full source code

C# Source Code
VB.NET Source Code
Default.aspx.vb (C) 2021    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About