Questions tagged [errors]
The errors tag has no summary.
56 questions
-5
votes
1
answer
109
views
How do you explain to the Product Owner that an error in a Web app is due to a browser quirk? [closed]
Web browsers are imperfect machines.
So let's say you came across an error. You might search your code to find the problem, and then failing that, you turn to online research that indicates the error ...
4
votes
3
answers
5k
views
Business logic error handling. Should exceptions really be avoided?
C#'s primary error handling mechanism are exceptions and try pattern.
We don't have access to discriminated unions yet like in case of F# and Rust Option<T> and Result<T, E> types.
The ...
55
votes
11
answers
11k
views
Is there a general solution to the problem of "sudden unexpected bursts of errors" in software?
Let me explain what I mean.
I have made a complex, highly polished over years PHP framework/library for my own use. I very aggressively log the smallest notice and immediately deal with it as soon as ...
0
votes
2
answers
217
views
Errors that don't make code behave wrong from user's point of view - how would you call them?
var file_extension = 'txt';
if (file_extension === 'txt')
alert('plain text');
else if (file_extension === 'md')
alert('markdown');
var file_extension = 'txt';
if (file_extension === 'txt')
...
4
votes
1
answer
262
views
What do you call the interface design error that consists in splitting two public methods that should be called together?
Consider a poorly-designed interface in which there are two functions (say foo() and bar()) that can be called independently, but in order to get some expected behavior (or in order to keep the object ...
4
votes
2
answers
182
views
API Design: Errors passed between APIs
I work as a developer on a few different APIs that make calls to each other.
Let's take two and call them API-USER and API-BUSINESS.
A user application makes calls to API-USER, which in turn makes ...
4
votes
5
answers
283
views
Dealing with unwanted usages of a function
I am writing a function that I would not like to get called given a certain context and am wondering how best to convey that to possible users of the function. Assume, for exemplification, I am ...
4
votes
5
answers
1k
views
How do you assess the damage in a system that has been using floats or doubles for money?
I've been assigned to a code base responsible for millions of dollars of transactions, per quarter, and has been in use for over a decade. Sifting through the solution, I see doubles used everywhere ...
2
votes
2
answers
691
views
Error Codes with Properties Files or Database
I'm about to implement Error codes for my company API, so, based on rfc7807 I will include a type which is an error type which is basically an error category, and inside those categories we have a ...
0
votes
1
answer
190
views
How to handle errors that is caused by old data structure?
When a major data structure has been changed in an app, what is the best way to handle such kind of errors in the front-end side so that the app doesn’t break?
For example, we have a list of users ...
-4
votes
1
answer
419
views
What are chances that computer (program) made a mistake? like not evaluate if(true)
(Probably my question is somehow similar to this, but I'm interested from the point of program engineers.)
What are chances and under what circumstances, a computer program could ever made a mistake ...
1
vote
2
answers
209
views
Error Monitoring On The Apps Which I'm Selling
I'm developing JS and PHP scripts and selling them on various marketplaces. But I need to track/monitor errors on my scripts. Usually, I use Sentry for own web apps, but I'm not sure if it's okay to ...
169
votes
9
answers
30k
views
I changed one method signature and now have over 25,000 errors. What now?
I started a new job recently where I am working on a very large application (15M loc). In my previous job we had a similarly large application but (for better or for worse) we used OSGi, which meant ...
4
votes
0
answers
462
views
Error handling paradigms [closed]
Is there a universally accepted classification of error handling strategies?
What is a general term to refer to those strategies, which can be used while searching for books and articles that compare ...
30
votes
6
answers
8k
views
Thousands of errors!
I was assigned to a new project recently. Well, an old project actually, written in classic ASP. Now a new version of the application is being written in the latest ASP.NET, but it's not expected to ...