mcanic Posted May 23, 2003 Posted May 23, 2003 Hi, Can anybody with helping me with handling errors in a CLASS that is used by a VB web application? I want to catch the error and either redirect to a page that contains an errorhandler & displays the error, or display a popup window that displays the error. try try to make db-connection catch e as exception ... show the error ?? how do I do this in VB with ASP.Net ?? ... end try Can anybody tell me how to do this? Greetz, Gerard Alberts Quote
Moderators Robby Posted May 23, 2003 Moderators Posted May 23, 2003 in your Catch you can Throw an exception to the calling function.. Catch e as Exception Throw new Exception (e.message) Then in the calling function you can display the error in a label or on the page. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.