|
-
Sep 15th, 2003, 10:05 AM
#1
Thread Starter
Member
Exception Handling
Is there any way to have a "default error handler" that handles ALL errors within a vb.net executable?
That is, whenever ANY type of error occurs, the program calls this one procedure only, and no auto-generated error messages are displayed?
Last edited by ramezb84; Sep 15th, 2003 at 10:26 AM.
-
Sep 15th, 2003, 11:24 AM
#2
Sleep mode
I've never seen error-handling used that way . You need them in case you suspect fragment of code would generate an error whether from the user or your code itself. e.g : when load a file (image , text..etc) , open database , wrong input in any control ,.. etc .Basically , enclose that code in error-handling routine and them grasp that error through using Exception class , then it's up to you if you want to show a descriptive error message or not .
-
Sep 15th, 2003, 11:27 AM
#3
PowerPoster
-
Sep 15th, 2003, 01:37 PM
#4
Thread Starter
Member
Thanks. Will be sure to check that out later on.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|