logoalt Hacker News

croemerlast Monday at 12:02 AM1 replyview on HN

Because LLMs mostly follow historical practice. And examples for bad error handling are more common (and easier) than good error handling.


Replies

ameliuslast Monday at 12:06 AM

I'm pretty sure an LLM will be able to handle an instruction such as:

"Wherever exceptions are thrown, add as much contextual information to the exceptions as possible. Use class RichException<Exception> to store the extra information". Etc. etc.

show 1 reply