Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-2 votes
0 answers
75 views

My program-system throws an Exception. I can see it, when debugging it under Exclipse. But the thrown Exception is not displayed in the log. And when just runnig it, I see the program starting and ...
5 votes
1 answer
191 views

I am writing a client application using Java Swing. I am quite confused about how a launcher can capture JVM crash information when the JVM crashes. The hs_err_pid[PID].log file is not generated. I ...
1 vote
2 answers
124 views

Is the following code valid in a C++ coroutine promise object? void promise_type::unhandled_exception() noexcept { try { // re-throw current exception throw; } catch (const std::exception &...
-2 votes
1 answer
96 views

I have the following code in a CLI PHP script. (The value in $mime_encoded_text actually comes from a message header, but for the sake of clarity, I have simplified here) : $mime_encoded_text = "...
Dennis 's user avatar
  • 1,318
Best practices
0 votes
13 replies
147 views

I'm trying to implement these requirements: I have to execute functions i cannot modify. Unfortunately, the functions also needs a specific global state which needs to be set before calling the ...
0 votes
1 answer
34 views

I am upgrading a rather big application from Spring Boot 2.7.18 to Spring Boot 3.5.6. In this application there is an ExceptionController which is intended to handle exceptions caused by non xhr ...
Best practices
0 votes
7 replies
173 views

import random number_to_guess = random.randint(1, 10) while True: guess = input("Guess a number between 1 and 10: ") # This crashes if 'guess' is not a number if int(guess) == ...
Best practices
0 votes
3 replies
175 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":...
1 vote
1 answer
61 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 ...
Advice
0 votes
2 replies
57 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
44 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
153 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 ...
2 votes
1 answer
61 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, ...
Best practices
0 votes
1 replies
96 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 ...
0 votes
1 answer
135 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")...

15 30 50 per page
1
2 3 4 5
...
3617

AltStyle によって変換されたページ (->オリジナル) /