Good Example of exception handling using VB.Net

ipjyo
ipjyo used Ask the Experts™
on
Hi,
I am looking for a good example of exception handling using vb.net.
I want to use "throw" clause in my catch block and want to pass the message to the parent class from which this class is called from. It would be helpful if anybody has an example of this.
what should I implement in parent class to handle the exception?
Please let me know if I need to be more clear.
Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®


try sumthing like this...


Try
  'Insert your code block here
Catch e1 as SQLException
  ' handle sql exceptions
Catch e2 as ExceptionType2
  ' Handle some othe error type
Catch ex as Exception
  ' Handle all other exceptions
Finally
  ' clean up as required
End Try



game-master
Éric MoreauSenior .Net Consultant
Top Expert 2016
Commented:

Author

Commented:
Hi all,
Thank you, I got it..

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial