27,309 questions
Score of -4
0 answers
86 views
Homebrew error: "Can’t install the software because it is not currently available from the Software Update server." [closed]
While installing git, while home brew. According to the tutorial, we first need to copy the line of code from the homebrew page, which goes like /bin/bash -c "$(curl -fsSL https://raw....
Score of 0
1 answer
109 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
66 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
72 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
144
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
82 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
77 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
133 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
97
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
130 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 ...
Score of -1
0 answers
38 views
Cyclic Serialization while using IErrorHandler in Rebus esb
I am experiencing some strange behaviour while using IErrorHandler with Rebus for second level retry and dead-lettering messages.
In my implementation of IErrorHandler as usual I am using the value of ...
Advice
0
votes
5
replies
79
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
164 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
204 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 ...