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 108777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:57:55+00:00 2026-05-11T01:57:55+00:00

I was wondering what the general consensus on error messages was. How detailed should

  • 0

I was wondering what the general consensus on error messages was. How detailed should they be?

I’ve worked on projects where there was a different error message for entering a number that was too big, too small, had a decimal, was a string, etc. That was quite nice for the user as they knew exactly where things went wrong, but the error handling code started to rival the actual business logic in size, and started to develop some of its own bugs.

On the other side I’ve worked on a project where you’d get very generic errors such as

COMPILE FAILED REASON 3

Which needless to say was almost entirely useless as reason 3 turned out to mean a link error.

So where is the middle ground? How do I know if I’ve added descriptive enough error messages? How do I know if the user will be able to understand where they’ve gone wrong?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T01:57:56+00:00Added an answer on May 11, 2026 at 1:57 am

    There are two possible target audiences for an error message, the user, and the developer.

    One should generally have the message target the user.

    o what is the cause of the problem.
    o why the program can’t work around the problem
    o what the user can do to work around the problem.
    o how to report the problem.

    If the problem is to be reported, the report should include as much program context information as possible.

    o module name
    o function name
    o line number
    o variables of interest in the general area of the problem
    o maybe even a core dump.

    Target the correct audience.

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

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Implement a custom trace listener: Let's see how we can… May 11, 2026 at 12:40 pm
  • added an answer Sadly you cannot compare two variables directly with mod_rewrite. (Or… May 11, 2026 at 12:40 pm
  • added an answer Here's a simple example: enum RoundingMode { UP { public… May 11, 2026 at 12:40 pm

Related Questions

I was wondering what the best way to model a relationship where an object
I was browsing around for programming troubleshooters, and I was wondering what the alternate
I was wondering what are the benefits of using anything else but Java for
I was wondering what is the best way (if at all possible) to determine
Just wondering what the general consensus was about returning enums from methods indicating the
I was just looking through some information about Google's protocol buffers data interchange format.
What is the best way to program an immediate reaction to an update to
Where I work, the design and development departments are totally separated, however we (the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.