Prepare for your Next Interview
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 ...
|
|||
|
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 | |
|
|
|
||||
| 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 |