Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
Best practices
0 votes
3 replies
126 views

The title says it, but here is an example: try // ... raise EFileNotFoundException.Create('File not found!'); except on E: EFileNotFoundException do begin E.Message := Format('"%s":...
T0mmiTheGreat's user avatar
Advice
0 votes
2 replies
43 views

I have a python code with below structure: try: # Check if ETL is running check_isrunning_sms_journals = "select nvl(d.is_running,0) as is_running from running_etl_table d where ...
Pantea's user avatar
  • 251
4 votes
1 answer
97 views

I have to run x asynchronous threads , which can last several minutes each. They ALL have to terminate properly without exceptions. If one fails I have to stop them all immediately and not wait ...
MaxSan's user avatar
  • 51
Best practices
0 votes
1 replies
93 views

I'm starting out with Java and Spring Boot, and I have a fairly simple question that always raises doubts for me, as I always like to follow best practices. I have a Controller layer where I create ...
Sergio Cea's user avatar
0 votes
1 answer
100 views

I recently upgraded to Spring Boot 3.5 (Jakarta packages) and noticed my global exception handler isn’t being triggered. @RestController public class UserController { @GetMapping("/test")...
Lavi Kumar's user avatar
1 vote
0 answers
84 views

I have two questions about exception handling. I read exception handling code of some real-time operating system (I mean assembly code). I note that on some architectures we allocate on stack more ...
chav1s's user avatar
  • 41
1 vote
1 answer
65 views

I have applied the multi-tenant location for EF Core database applying customize schema per tenant in my ASP.NET Core Web API project. To do that the client send request through the API by setting ...
Yoann Blossier's user avatar
0 votes
1 answer
131 views

I wanted to learn game dev in C++ lately, so I decided to setup raylib in Visal Studio 2022 by following a tutorial online. I downloaded the latest release from the raylib github repo and configured ...
Aayan Tanvir's user avatar
1 vote
1 answer
140 views

Consider these two functions: int foo(std::array<int, 10> const& v) { auto const w = v; int s{}; for (int i = 0; i < v.size(); ++i) { s += (i % 2 == 0 ? v : w)[i]; ...
Enlico's user avatar
  • 30.2k
0 votes
1 answer
73 views

I'm trying to perform a misaligned memory read / write and catch it inside a __try and __except block. After setting the RFLAGS.AC bit to 1, I perform the misaligned read which causes my program to ...
trapstar's user avatar
1 vote
0 answers
69 views

I'm integrating the LINE messaging API with bot server. Likewise the Whatsapp Business API. To create the public URL, I used ngrok. Now whenever the user send the message to us, the LINE server send ...
Muhammad Faiz Raza's user avatar
1 vote
1 answer
143 views

Exception: Module loading logistics failed: file logistics/security/ir.model.access.csv could not be processed: No matching record found for external id 'model_logistics_order' in field 'Model' No ...
Anton's user avatar
  • 135
0 votes
1 answer
47 views

Is it possible that pathlib.Path().is_file() returns True and the file is nevertheless not readable, i.e., open('foo', 'r') raises an IOError?
fsdfsdfsdfsdfsdf's user avatar
1 vote
0 answers
94 views

I'm working on a gRPC client that continuously streams data (such as images) from a server. I use a CancellationToken to stop the stream when needed. While cancellation works, I consistently see ...
Sumit Anand's user avatar
1 vote
1 answer
94 views

I have a Python script using asyncio (for Telethon) and until recently, it was running just fine in a Terminal inside VSCode. However, an extension install prompted a VSCode restart and now I can't ...
Sora.'s user avatar
  • 1,495
1 vote
1 answer
108 views

I'm trying to implement a basic database web application in Netbeans using Java Server Faces and a Java Database. But whenever I try to deploy the application, I get the following error message: ...
William Rave's user avatar
0 votes
0 answers
71 views

I am trying to catch an exception and get the line and source file where the error occurred. I was using __throwLineNumber and __throwFileName and it compiles, but I am receiving linker errors: [...
user6604390's user avatar
2 votes
1 answer
275 views

I'm trying to fetch data using Algolia Search in Flutter and the data does get fetched the problem is that it gives the following error: DioException (DioException [connection timeout]: The request ...
Ayesha Arshad's user avatar
2 votes
2 answers
126 views

According to cppreference The catch (...) handler matches exceptions of any type. [...] This handler may be used to ensure that no uncaught exceptions can possibly escape from a function that offers ...
Dorian's user avatar
  • 632
0 votes
0 answers
155 views

I'm currently working on a C++ application compiled using Microsoft Visual Studio 2022. I've been encountering an issue where the application crashes during shutdown. These crashes don't visibly ...
MAG's user avatar
  • 3,137
4 votes
2 answers
265 views

How can I get information about an unknown exception, like in the code below? void foo() { throw 'A'; } ... try { foo(); } catch (const std::exception& exc) { std::cout << exc.what(); ...
Jabberwocky's user avatar
  • 51.3k
1 vote
1 answer
192 views

I have a function which I give a char** input. Inside the function I am calling realloc. I am calling the function multiple times without any issues, but it always crashes at the same point with &...
MVlgr's user avatar
  • 21
1 vote
1 answer
81 views

I'm prompting the user to enter a float. Afterward I try to convert the received string to float. In case the user has entered an invalid value (string with special characters, etc.), which can't be ...
cluster1's user avatar
  • 6,128
0 votes
1 answer
125 views

I am trying to implement an Exception mapper in Spring Boot application to capture all the exceptions thrown by the REST API. The exception mapper is working inconsistently which means for exception ...
Monish Das's user avatar
-3 votes
1 answer
98 views

I'm running my app like so: uvicorn main:app --host 0.0.0.0 --port 8080 --workers 2 --limit-concurrency 10 Versions are: fastapi==0.103.2 uvicorn==0.34.3 When I start slamming it, I get the expected ...
grayaii's user avatar
  • 2,507

1
2 3 4 5
1086