53,861 questions
0
votes
0
answers
33
views
Spring Boot doesn't catch SQLState custom exception from PostgreSQL trigger – Angular gets 500 but Postman gets 400
I'm working on a Spring Boot + PostgreSQL project where I have a trigger function that raises custom exceptions using RAISE EXCEPTION with SQLSTATE codes.
Here is the PostgreSQL trigger function:
...
0
votes
1
answer
72
views
What Python exception should I raise when an input file has the wrong size? [closed]
I'm writing a Python script which reads some input from a file. The input size can be calculated using other information the script has, and the file must have exactly that. Now, if I check and figure ...
-2
votes
0
answers
35
views
Can I get the Python interpreter to print stack traces with one line per frame rather than two?
When an exception is raised in Python, we get something like:
Location
source line
Location
source line
Location
source line
yet - I would rather have one line per "stack frame", e.g.:...
2
votes
1
answer
98
views
Why should bracket's first argument perform at most one blocking operation?
In Parallel and Concurrent Programming in Haskell by Simon Marlow, the implementation of bracket is shown,
bracket
:: IO a -- ^ computation to run first (\"acquire resource\")...
3
votes
3
answers
104
views
Does throw behave the same as throwIO, if instantiated as IO a?
I'm reading Parallel and Concurrent Programming in Haskell by Simon Marlow, and I initially read this suggestion fairly lightly,
It is always better to use throwIO rather than throw in the IO monad ...
2
votes
0
answers
20
views
Netmiko config backups. Can't figure out how to ignore exceptions
First time asking anything here on stackoverflow. The site (you all) has been incredibly helpful as a get my feet wet with scripting. I'm so stuck on this issue though, not finding any working syntax, ...
-1
votes
0
answers
22
views
Break on user-unhandled exceptions in async code in dotnet 9?
This is a question about an ages-old problem which, according to new developments, should have just recently received a solution, but the solution does not seem to work for me.
The ages-old problem:
...
0
votes
1
answer
55
views
Raising Exceptions if something goes wrong, return a value if function completes successfully
I'm writing an API authentication function and basically I'd like it to do this:
import json
import http.client as httplib
import mimetypes
import urllib.parse as urlparse
import csv
import time
...
0
votes
0
answers
29
views
DeveloperExceptionPage not showing
I'm working through a Web API book, and I've reached the exception handling sections. I'm trying to set up some basic exception handling in my ASP.NET Core Web API. I set up a minimal API error test:
...
0
votes
0
answers
75
views
How to handle all exceptions in a global error handler, and suppress them? [duplicate]
I need to implement a global error handler without try, catch if an exception occurs somewhere then handle everything in one place.
I have this code, it works until the error is in another thread:
...
-1
votes
0
answers
53
views
JComboBox throws IllegalComponentStateException when selecting an item
I’m a Java beginner currently experimenting with Swing to get used to building GUIs. There’s no actual logic yet — I’m just focusing on layout and component structure.
When I click on a unit in either ...
-1
votes
0
answers
27
views
Duplicate GlobalKey detected in widget tree. while navigating to nextpage
This is the code of my HomeScreen where i use a globalkey in scaffold which i have created in my main class:
Widget build(BuildContext context) {
return Scaffold(
drawer: CustomDrawer(
...
4
votes
0
answers
99
views
WRITE Access violation on `RET` instruction
I got a report from my application saying:
Access violation at address 00000000004FE77A in module 'Sample.exe' (offset FE77A). Write of address 0000000048000300
The RIP is the same 00000000004FE77A ...
-1
votes
0
answers
16
views
Tracking an exception error using IL DASM, P7 and P8 values on the Event Viewer
I'm getting this error on the event viewer when the application is trying to start.
The application was running fine a few months ago. When I try to reinstall it again, the crash begins to happen.
I ...
0
votes
1
answer
52
views
Global handle exception .NET 8
I'm working on a fairly standard ASP.NET Core 8 Web API project. I added a module to globally capture exceptions, and it works fine. But now I'm trying to standardize the responses in the controllers ...