Skip to main content
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: ...
Salvatore Montagna's user avatar
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 ...
einpoklum's user avatar
  • 133k
-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.:...
einpoklum's user avatar
  • 133k
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\")...
Enlico's user avatar
  • 28.9k
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 ...
Enlico's user avatar
  • 28.9k
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, ...
olddude's user avatar
  • 21
-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: ...
Mike Nakis's user avatar
  • 62.4k
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 ...
Alvin Li's user avatar
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: ...
CoderForHire's user avatar
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: ...
Dmitro's user avatar
  • 25
-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 ...
jamesdiaz's user avatar
-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( ...
Mohd Sameer Gauri's user avatar
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 ...
Alex's user avatar
  • 5,698
-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 ...
Juan Acosta's user avatar
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 ...
Robe79's user avatar
  • 59

15 30 50 per page
1
2 3 4 5
3591