Results 1 to 4 of 4

Thread: Exception Handling

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2003
    Posts
    40

    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.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 .

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Try this, it might help you out a lot.
    http://msdn.microsoft.com/library/de...ml/emab-rm.asp

  4. #4

    Thread Starter
    Member
    Join Date
    Sep 2003
    Posts
    40
    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
  •  



Click Here to Expand Forum to Full Width