Skip to main content

Questions tagged [errors]

-5 votes
1 answer
110 views

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 ...
moonman239's user avatar
  • 2,063
4 votes
3 answers
5k views

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 ...
Konrad's user avatar
  • 1,569
55 votes
11 answers
11k views

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 ...
user379490's user avatar
0 votes
2 answers
221 views

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') ...
user90726's user avatar
  • 205
4 votes
1 answer
263 views

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 ...
melfnt's user avatar
  • 151
4 votes
2 answers
183 views

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 ...
Rolan's user avatar
  • 273
4 votes
5 answers
285 views

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 ...
Ganea Dan Andrei's user avatar
4 votes
5 answers
1k views

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 ...
8protons's user avatar
  • 1,389
2 votes
2 answers
723 views

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 ...
Ricardo's user avatar
  • 29
0 votes
1 answer
192 views

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 ...
catandmouse's user avatar
-4 votes
1 answer
420 views

(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 ...
T.Todua's user avatar
  • 165
1 vote
2 answers
210 views

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 ...
Eray's user avatar
  • 336
169 votes
9 answers
30k views

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 ...
user788497's user avatar
  • 1,321
4 votes
0 answers
463 views

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 ...
michau's user avatar
  • 149
30 votes
6 answers
8k views

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 ...
Mr Lister's user avatar
  • 1,599

15 30 50 per page