Skip to main content

Questions tagged [error-messages]

3 votes
2 answers
3k views

I am working on improving the code quality and portability of my C library, specifically a ring buffer implementation, that will be used in larger applications. I have encountered a dilemma regarding ...
Usman Mehmood's user avatar
0 votes
1 answer
66 views

I have an endpoint GET home/{homeId}/laptops . Its response is : {"homeId":string,"laptops":string[]} If homeID does not exist I can return '404 Not found' OR an empty response ...
Cap Barracudas's user avatar
8 votes
4 answers
7k views

I'm writing an app which uses a logger with different logging levels (info, debug, warning, error, etc.); but - I'm used to the idiom of writing program output to stdout and error information to ...
einpoklum's user avatar
  • 2,808
0 votes
0 answers
358 views

We use microservices and spring boot in our saas (multi tenant) projects. We will proceed through the schema per tenant. We manage the error messages we show to the users through a database. We are ...
Burak Yilmaz's user avatar
-1 votes
2 answers
753 views

After years of (amateur, dirty) personal API development I finally decided to follow some best practices. My problem: the API may have problems, say, retrieving some data. It will gracefully handle ...
WoJ's user avatar
  • 1,661
5 votes
6 answers
3k views

What is considered good practice for application security wise when returning errors from a backend API? I have inherited a project with a lot of technical debt, which I intend to improve. One ...
wobbily_col's user avatar
  • 1,891
1 vote
4 answers
1k views

I have a function which returns either true/false, each return plays nicely with the function name: isOnline, however, there are cases in which I want to throw an error inside of it. Maybe the status ...
Vincent Miller's user avatar
1 vote
2 answers
340 views

I'm developing an app (using Flutter) that has a model that contains most of the business logic, and a view that displays the user interface. The model can call notifyListeners to inform the view that ...
Magnus's user avatar
  • 415
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
-2 votes
1 answer
301 views

Disclaimer : I come on this topic after it has been recommended to me on my previous closed SO topic (see closed one : https://stackoverflow.com/questions/64338968/how-to-effectively-manage-a-large-...
Vincent PHILIPPE's user avatar
3 votes
3 answers
1k views

I started to play with C++ recently. One of the difficulties I have quite often is when the compiler tells that there is an issue with the types: more often than not, those compiler errors look ...
Arseni Mourzenko's user avatar
7 votes
1 answer
8k views

I have a rest api and a reactjs front end, in some cases, the api will send an error to the front end and I need to display that error. My app will support multiple languages, so the error must be ...
Vencovsky's user avatar
  • 371
0 votes
1 answer
170 views

I have an REST API, which has a rate limit of 1 query per IP per 5 seconds. When the user tries to call the API too often, I respond with the HTTP status code 429 Too Many Requests and a JSON message. ...
ruohola's user avatar
  • 233
4 votes
1 answer
2k views

As part of a game engine I am writing in cython, one of the challenges I am facing is creating a consistent interface for error handling that works at the C and python levels of my code. I am ...
CodeSurgeon's user avatar
8 votes
6 answers
4k views

I'm designing a backend webservice, and when an error occurs I'm returning it as a JSON to the frontend. This JSON contains an error code, which the frontend maps to an localized string and shows that ...
ruohola's user avatar
  • 233

15 30 50 per page
1
2 3 4 5