Results 1 to 2 of 2

Thread: Not the same old error handling question

  1. #1

    Thread Starter
    Fanatic Member steve65's Avatar
    Join Date
    Jun 2000
    Posts
    610

    Not the same old error handling question

    I have read a lot of good information on error handling here but there is one thing that I have not seen any information on and that is error constants and or ID's

    What is the best way to keep track of your error numbers and descriptions?

    From what I can gather the following information should be logged and presented back to the user some how.

    Constant: ERR_SLP_MISC_DIS_DOCB
    ID: 512
    Module: Misc_DB
    Function: Disconnect
    Type: General (or Warning, or Fatal)
    Description: Cannot disconnect from Database.


    I was going to setup a separate string table with all of my error descriptions starting with an ID of 512. I was also going to add an error code module that would have constants listed for each error and then use the combination of the two to raise my errors in my code.

    Could I please have some insights, comments or webs sites that could steer in the right directions on how errors are handled in an enterprise application.

    Thank You
    This space for rent...

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    I am afraid I cannot give you any advice as such, but in my opinion as a developer, the user only needs to be informed that there has been some error and a general description about the error, for e.g. Data Access Error etc.

    Detailed debugging info as to which module caused the error etc. is useful to the developer/debugger, and not to the end user. You can implement some sort of error logging and tell the user to send that log over to you if the application crashes repeatedly.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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