Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on throwexception from function to function within the VB.NET forums, part of the Software Development category; Suppose there are 2 functions and i need to throw the exception from one function to other function how do i do that?ex:func1() and func2() I need to throw an ...
|
|||||||
|
|||
|
throwexception from function to function
Suppose there are 2 functions and i need to throw the exception from one function to other function how do i do that?ex:func1() and func2() I need to throw an exception from func1() and need to catch it in func2()
Thanks, Question asked by ashwini. |
| Sponsored Links |
|
|||
|
Re: throwexception from function to function
in func2() something like this:
Try func1() Catch ex as Exception ' Handle the exception Finally ' Cleanup code, always executed regardless of the exception End Try and in func1(): ... Throw new Exception("My message") ... |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How does indexes function? | Lokesh M | SQL | 10 | 10-07-2007 02:13 PM |
| Function overloading example | vicky19772003 | Java | 6 | 05-22-2007 10:43 AM |
| pl/sql function | gujjar | Oracle Certification | 3 | 02-22-2007 10:47 AM |
| TSL Function | sutnarcha | WinRunner | 1 | 12-20-2006 05:40 AM |
| Function in PHP | sripri | PHP | 1 | 07-20-2006 12:13 PM |