Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / March 2005

Tip: Looking for answers? Try searching our database.

Simple example of Exception Handling Application Block usage?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C17 - 10 Mar 2005 18:11 GMT
Hi all,

Does anyone have a working VB .NET example of how to use the EHAB with an
existing simple application, from the ground up?

The QuickStart example and so-called walkthrough is fully built out and full
blown and I can't tell what's what.  It would be nice if the QuickStart
worked something like this:
   1) Let's create an example application.  Run it and make sure it works.
   2) Now let's put in an error and see how native VS handles it.
   3) Let's put in exception handling WITHOUT EHAB.
   4) Now let's do the same type of exception handling, with EHAB.
   5) Now let's configure EHAB to log the error.
   6) Now let's configure EHAB with a specialized exception handler.
...
Etc.

Thanks all,

--C17
RK - 22 Mar 2005 16:31 GMT
Hi Dear,
This is Ravindra, find the following example to demonstrate the simple
Exception Handling

Imports System
Module Module1
Sub Main()
dim i,j,k as Integer
i=10
j=0
Try
   k=i/j 'Causes an Exception, if not placed in try n catch leads to App..
Termination
   Console.writeLine(k)
catch ex as OverflowException
Console.writeLine(ex.Message)
End Try
Console.WriteLine("Normal Execution") 'Will not be executed, if no try used
in the program

end Sub
End Module

> Hi all,
>
[quoted text clipped - 16 lines]
>
> --C17

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.