Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8347109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:15:21+00:00 2026-06-09T07:15:21+00:00

I’ve been looking into incorporating Error Codes in the application I currently support, and

  • 0

I’ve been looking into incorporating Error Codes in the application I currently support, and I had some general questions.

The reason I am leaning towards using codes at all is because we have identified at least one serious issue in our application that is beyond our control to fix programmatically. The issue is very rare, but if it occurs it could cause severe downtime to the user. To fix it requires direct contact with support personnel who is familiar with the issue.

To do the best we can with it in the application, we are writing information to the Windows Event Log to point the support-staff to the corrupted data, and also display a generic “Please Call Support” prompt to the user.

We would like to add error codes to allow support to find the specific error in the Event Viewer more quickly.

So, first question: Is this an acceptable approach, or is there another idea I haven’t considered?

Second, if we use Error Codes, what’s the best way to manage them in our solution? Include an error-code-file in each project with non-intersecting integer-groups blocked out (yuck)? Create a new project specifically for holding error codes (yuck)?

I’ve never had a good idea how Error Codes are best managed, and no two projects I’ve worked on have done it in any clean way. I’d prefer to avoid them, but if I do have to use them, I’d like to know what works best.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:15:22+00:00Added an answer on June 9, 2026 at 7:15 am

    Error codes just exist as a way to succinctly describe every known possible error scenario – as a way of ensuring that localisation and Chinese-whispers don’t confound any troubleshooting process.

    Assuming you have a unique human-readable error message for each and every error condition, then you don’t need to maintain a database of error codes, just compute it as a hash of the canonical English string (I assume that’s your default language). If you add localised versions then just keep on using the English string as the basis of the digests.

    When you receive a tech call you just need to find the string that matches the hash code, which is something that can be done automatically with a utility program (Reflection to the rescue).

    Alternatively, ensure all exceptions that are displayed to the user are encapsulated by your own Exception subclass that has a required error-code constructor argument which becomes the responsibility of the developer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am currently running into a problem where an element is coming back from
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.