Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
44 views

I have a DDD-ish application where a long-running business process is split into workflow steps. Each step is idempotent and starts from a message handler. Very simplified flow of a single step: ...
Nimchuk_R's user avatar
Best practices
0 votes
3 replies
156 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
1 vote
1 answer
55 views

How to make exceptions thrown from a socket server running in a task group task be propagated up to its parent TaskGroup? With given example, I'd expect to see the error raised from ...
laur's user avatar
  • 608
Advice
0 votes
2 replies
55 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
Advice
0 votes
0 replies
39 views

I'm building a hobby chess engine that communicates through the UCI protocol. This is communication done through standard out/in of the program, with each line representing a single command. One of ...
Kyle Pollard's user avatar
  • 2,362
4 votes
1 answer
102 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
2 votes
1 answer
49 views

The signature of sys.excepthook is sys.excepthook(type, value, traceback) so a natural way to call it is sys.excepthook(sys.exc_type, sys.exc_value, sys.exc_traceback) But as of Python 3.12, ...
Kodiologist's user avatar
  • 3,547
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
-1 votes
1 answer
69 views

I'm experimenting with Python’s asyncio to run multiple coroutines concurrently. However, in some cases asyncio.gather() seems to hang forever when one of the tasks raises an exception — even though I ...
OLEJK's user avatar
  • 1
0 votes
1 answer
115 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
3 votes
1 answer
146 views

I'm experimenting with measuring CPU's instructions latency and throughput on P and E cores using RDPMC on Win 11, something like that: MOV ECX, 0x40000000 ; Instructions Counter RDPMC ; Read ...
Andrey Dmitriev'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
0 votes
1 answer
59 views

The first exception does not block the execution: public static async Task Main() { await Task.WhenAny( Task.WhenAll( Task.Run(() => throw new Exception(&...
user26757851's user avatar
1 vote
1 answer
71 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
3 votes
1 answer
418 views

I've created an Empty Views Activity project in Android Studio, but as soon as I add the dependency in build.gradle.kts and try to launch the app, it throws an exception (see output). No code is ...
Beavis's user avatar
  • 33
0 votes
1 answer
146 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
109 views

I'm working through Bjarne Stroustrup's "Programming: Principles and Practice Using C++" and using the PPP_support.h file from the official website https://www.stroustrup.com/PPP_support.h I ...
Khavin S's user avatar
1 vote
1 answer
148 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.3k
0 votes
1 answer
296 views

I tried to use DDGS to search for images in Jupyter Notebook with fastai, but the search seems to be not very stable. Most of time there turned out to be an ERROR:DDGSException: No results found.I ...
Alex YAN's user avatar
0 votes
1 answer
74 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
2 answers
79 views

I am trying to combine Option.defaultValue with failWith to get exception for None values: printf "%A" (Some 1 |> Option.defaultValue (failwith "Error")) But this code raise ...
Andrey's user avatar
  • 6,639
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
4 votes
0 answers
128 views

For debugging purposes, I would like to log the exception that is causing stack unwinding that lead to destruction of specific object. Something like this (pseudocode, obviously insufficient and not ...
Igor G's user avatar
  • 2,668
1 vote
1 answer
150 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
54 views

I have an URL for file downloading and it works perfectly on my Samsung Galaxy S10 (running Android 12), but the same app throws java.io.FileNotFoundException on my Google Pixel 9 with the latest ...
zkminusck's user avatar
  • 1,238
0 votes
1 answer
49 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
0 votes
0 answers
36 views

I am unable to move the next statement pointer in VS2022 outside the catch block if an Exception is thrown. If I run this code in a VS2022 (17.14.4) Unit Test Project (.Net 4.81), set a break point on ...
RESC's user avatar
  • 1
1 vote
0 answers
99 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
0 votes
1 answer
43 views

I have set up a very simple Java web project (using NetBeans' Web Application template). It is deployed on Payara 6.2025.7 with a H2 database as a JTA data source. I can't get EntityExistsException ...
zajer's user avatar
  • 842
1 vote
1 answer
96 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
73 views

I often see code like this: try: some_operation() except Exception: logger.error("An error occurred while running the operation") raise Exception("A custom message") ...
Jakub Małecki's user avatar
1 vote
1 answer
113 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
1 answer
106 views

I have the following configuration: spring-boot-starter-parent: 3.4.7 spring-boot-starter-web (excluding spring-boot-starter-tomcat in order to have netty instead Tomcat) spring-boot-starter-webflux` ...
Carlos's user avatar
  • 1
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
0 votes
1 answer
203 views

I am getting a memory exception in (unchanged) code that has been working for 2+ years (code is unchanged, in a Git repo). Here's the code that is causing the exception: HTREEITEM getTreeNode(HWND ...
John D's user avatar
  • 11
2 votes
1 answer
295 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
4 votes
1 answer
136 views

I am wondering why exceptions inside joined thread invoke std::terminate and detached threads do not invoke std::terminate. Consider following snippet that triggers std::terminate. If we replace t2....
vocasle's user avatar
  • 889
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
1 vote
2 answers
95 views

I'm currently working on a modular python framework. The current dilemma is, that one module has a set of submodules that have vastly different dependencies, and a user usually would only use one of ...
Oliver's user avatar
  • 84
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
2 votes
3 answers
160 views

In Effective C++, by Scott Meyers, item 8, there is a suggestion to wrap (using RAII) an object that has a close method that may throw, to automatically call close in the destructor, but since ...
luczzz's user avatar
  • 446
4 votes
2 answers
270 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
0 votes
1 answer
200 views

I think I understand the basics of exceptions: If a function cannot perform its assigned task, it can signal it by throwing an exception, When writing a function, one must make sure it is exception-...
Eternal's user avatar
  • 3,114
1 vote
1 answer
195 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
0 votes
2 answers
254 views

I'm tinkering my API on node.js with caching, supporting graceful degradation. While testing app with redis container being disabled, node-redis is trying to reconnect every five seconds. The problem ...
Stas's user avatar
  • 1
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
89 views

We are adopting a modular monolith approach to our application development and everything is fine thus far. However, when implementing a custom exception handler for each of module this becomes quite ...
Richard Skinner's user avatar
0 votes
1 answer
126 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
-1 votes
1 answer
135 views

In trying to run tests on my app in Swift, I am encountering a problem. I do not have any breakpoints set, and yet, the execution of the tests is being interrupted on the line containing "throw ...
ratbum's user avatar
  • 1,035
-3 votes
1 answer
104 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