27,303 questions
Score of 0
1 answer
114 views
C# Blazor using SQLite - DllNotFoundException
I'm learning Blazor and databases, and I'm new to programming in general.
I created a Blazor web assembly project, .NET 10 LTS with a simple local SQLite database.
I just want to use SQLite inside my ...
Score of 2
1 answer
70 views
Securely storing error messages displayed to the application user in a database
Ultimately, I'd like to reduce the redundancy of identical error messages and even prevent potential DDoS attacks. I've developed the following method in the Spring Boot application. The goal is for ...
Score of 0
1 answer
74 views
Apache Camel not deleting message from SQS when error is handled
I have these routes:
class ContentChangedIngestRoute(
) : RouteBuilder() {
override fun configure() {
from("aws2-sqs://myQueue?deleteAfterRead=true")
.routeId("...
Advice
0
votes
6
replies
155
views
golang error handling code example clarification
I am reading up about wrapping and unwrapping errors when doing a chain of calls. On this topic I came up the following snippet of code.
err := controller()
stack := []error{err}
for len(stack) > ...
Score of 0
0 answers
90 views
Starlette+Uvicorn for MCP : silent exceptions on server-side, can't even crash debug the server
With all the hype around agentic AI, and in order to skill up on this topic and on developing inter-connected services, I tried to make a local MCP server to connect with a llama.cpp instance, ...
Score of 0
1 answer
81 views
Package installation ERROR: KeyError: key v"version" not found
I usually come across the following error when installing a new package in Julia.
When I run the following in the REPL:
julia> import Pkg
julia> Pkg.add("Foo")
Updating registry at `~/...
Score of 1
0 answers
134 views
Excel VBA err.raise results in endless loop on "End" in Run-time error dialog
I am trying to fix up some error handling in VBA. Two patterns (that would be most useful) are problematic, two are not. In the code example below, code patterns 1 and 2 result in problematic ...
Best practices
2
votes
3
replies
98
views
Behaviour of failed `allocate` if `stat` is not given
I often write code like this
allocate(a(n), stat=stat)
if (stat /= 0) then
write(*,*) "Allocation failed, stat =", stat
stop 1
end if
I understand that I should check stat, if I ...
Score of -1
2 answers
135 views
How to detect *every* kind of error when printing to a pipe, including missing write permissions?
On this site and elsewhere, there are quite a few questions about how to handle errors when printing to a pipe in Perl. But none of the answers, solutions and explanations I have seen so far are ...
Advice
0
votes
5
replies
82
views
How to validate the request and return errors properly in a REST service?
A client sends a request to the server, e.g. POST /companies, where the request body looks like that:
{
"name": String (unique),
"ownerId": Long (fk)
}
When I validate the ...
Score of 2
2 answers
169 views
Right way to throw errors using $PSCmdlet.ThrowTerminatingError()
What's the right way to throw a generic error using $PSCmdlet.ThrowTerminatingError()?
My (possibly flawed) understanding is that inside an advanced function, such as one using the CmdletBinding, we ...
Score of 1
2 answers
134 views
Best Practices for try-catch blocks inside the Get part of an indexer [closed]
I've been creating a basic version of a LinkedList class mainly for the sake of an assignment (though also to gain a better understanding of it all). I've gotten to the stage where I'm writing error ...
Score of 0
1 answer
208 views
Propagate errors across task boundaries in an ergonomic way
I am writing a small cli application to learn rust and did start my error propagation with a lot of Result<_, Box<dyn std::error::Error>>. This is quite flexible and works nicely.
Now I ...
Best practices
0
votes
2
replies
143
views
How to do a proper error handling in typescript?
This is my first attempt at implementing proper error handling in my project. I realized that as my project grows in complexity, the lack of structured error handling makes development much more ...
Advice
0
votes
7
replies
105
views
Can a user cause a SyntaxError?
I am currently learning the basics of python and I am the beginning of my programming journey. I was doing a course and came across the following problem.
I initially picked TypeError and ValueError ...