2
votes
1answer
81 views

How do I output an error when I'm determining how to output an error?

I've written an API which can be configured to signal errors in different ways (return values, debugging messages, or exceptions). I've got a check in place when the API is first initialized to see ...
0
votes
2answers
59 views

function level error reporting: to combine/bundle errors or not?

What is in your opinion the best way to handle (at runtime) the situation when a more than one input parameter to a function is incorrect. I can see two ways. First one - a simply return an first ...
3
votes
3answers
144 views

Choosing a proper wording for referring compiler errors

Consider someone is writing a message (or a question at StackOverflow). The context is following: In my code, I have the following line: int foo = Bar(); However, the compiler returns an ...
15
votes
9answers
572 views

Under what circumstances should error messages be presented to the user?

Should error messages ever be presented to an end user and if so what rules or advice should you have about what should be in them?