troubleshooting Question

Writing and Using EvenLog Class module

Avatar of sainavya1215
sainavya1215 asked on
Visual Basic.NET
3 Comments1 Solution224 ViewsLast Modified:

I need to write a class module which will be used in other classes to get the exception if any to the EventLog.

1)The eventLog should also contain if any program errors involved..How can we write it and implement..

2)Lets say I have the following class where I have to use it when exception is throw in function

public class COrders
   Public function GetOrdersForCustomer(ICustomerID as integer) as dataset
      dim id as integer = Mcommand.parameters("@Return_value").value

     Catch Ex as exception
        Throw EX  
   End try
 End function
End class

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros