Skip Navigation LinksHome > Categories > Code from a Category

Understanding Exception Handling in VB.Net



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 2115
Add Date: 11/11/2011
Understanding Exception Handling in VB.Net, Here is the example for exception handling.
Lets see how we can have multiple Catch Statements to catch a specific type of error and act upon it.
Note:
We can have multiple Catch statements but be very specific in declaring the sequence of Catch blocks because if a Catch block handling generic exception is preceding the Catch block handling the specific type of exception, the exception will be handled by the generic Catch block hence defeating the purpose.

This example illustrates the use of multiple Catch Blocks
levayne
Comment #:  53 Replay this Comment Reply this comment Posted on: 4/9/2012

vb.net exception handling samples with source code

http://vb.net-informations.com/language/vb.net_exceptions.htm

levayne

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.