---
title: "#errorhandling articles | Hashnode"
description: "Explore 10 articles tagged #errorhandling on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/errorhandling"
---

Tag

# #errorhandling

10 posts · 0 followers

[Powerduck](https://hashnode.com/@powerduck) · [Oct 24](https://hashnode.com/posts/agent-erases-specific-error-behind-generic-message/6add06c619c667bed4a2b615)

### [The agent replaced the specific error with a generic one, and lost the clue that named the failure](https://blogs.powerduck.com/agent-erases-specific-error-behind-generic-message?utm_source=hashnode&utm_medium=feed)

The agent folds a specific failure into a generic envelope, and the message that named the cause disappears. A shorter error string is not simplification when it removes the field on-call needs to triage; keep the diagnostic in structured fields and test the failure path.

4 min read · [blogs.powerduck.com](https://blogs.powerduck.com/agent-erases-specific-error-behind-generic-message?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/agent-erases-specific-error-behind-generic-message/6add06c619c667bed4a2b615)

[Powerduck](https://hashnode.com/@powerduck) · [Oct 23](https://hashnode.com/posts/agent-broad-try-catch-hides-failures/6adbd1a03e7f4819108bc278)

### [The agent wrapped everything in try/catch and your errors disappeared](https://blogs.powerduck.com/agent-broad-try-catch-hides-failures?utm_source=hashnode&utm_medium=feed)

Agents told to handle errors gracefully wrap the body in try/catch, return a default, and warn. The happy path passes, the build goes green, but the real exception vanishes into a fallback that looks like success. Here are the catch shapes that hide failures and the decisions a catch must make.

4 min read · [blogs.powerduck.com](https://blogs.powerduck.com/agent-broad-try-catch-hides-failures?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Oct 21](https://hashnode.com/posts/agent-swallowed-exception-to-make-tests-pass/6ad91209ad67f2ca3a5998aa)

### [The Agent Made the Exception Quiet Instead of Fixing It](https://blogs.powerduck.com/agent-swallowed-exception-to-make-tests-pass?utm_source=hashnode&utm_medium=feed)

The ticket was a failing validation on an invalid webhook payload. CI went green, but the diff did not fix the field — it stopped raising the error. The invalid case returned 200 and vanished into a log line, because no test asserted the expected failure.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/agent-swallowed-exception-to-make-tests-pass?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Oct 10](https://hashnode.com/posts/agent-try-catch-swallows-the-error/6acacb6170cee0c0e3cfcc5f)

### [Your Agent Wrapped the Whole Function in try/catch and Called It Error Handling](https://blogs.powerduck.com/agent-try-catch-swallows-the-error?utm_source=hashnode&utm_medium=feed)

Paste a stack trace, get a try/catch around the whole function. The error still happens — now it returns undefined and the caller has no idea. Wrapping a call is not handling a failure.

4 min read · [blogs.powerduck.com](https://blogs.powerduck.com/agent-try-catch-swallows-the-error?utm_source=hashnode&utm_medium=feed)

[Syed Muhammad Ali](https://hashnode.com/@s-m-ali) · [Aug 3](https://hashnode.com/posts/error-handling-in-next-js-16-the-complete-2026-guide/6a70170aafe9dc0d9ca3448f)

### [Error Handling in Next.js 16: The Complete 2026 Guide](https://devstacked.hashnode.dev/error-handling-in-next-js-16-the-complete-2026-guide?utm_source=hashnode&utm_medium=feed)

Learn error handling in Next.js 16 with error.tsx, global-error.tsx, not-found.tsx, Server Actions, and Route Handlers — with production-ready code.

13 min read · [devstacked.hashnode.dev](https://devstacked.hashnode.dev/error-handling-in-next-js-16-the-complete-2026-guide?utm_source=hashnode&utm_medium=feed)

[Tahosin](https://hashnode.com/@tahosin) · [Apr 21](https://hashnode.com/posts/javascript-undefined-master-robust-handling-in-ai-coding/69e7a876bfc8e61eacf4f319)

### [JavaScript Undefined: Master Robust Handling in AI Coding](https://tahosin.hashnode.dev/javascript-undefined-master-robust-handling-in-ai-coding?utm_source=hashnode&utm_medium=feed)

Dive deep into JavaScript's 'undefined' type. Learn best practices, performance considerations, and common pitfalls to build more resilient AI-powered applicati

5 min read · [tahosin.hashnode.dev](https://tahosin.hashnode.dev/javascript-undefined-master-robust-handling-in-ai-coding?utm_source=hashnode&utm_medium=feed)

[ThankGod Chibugwum Obobo](https://hashnode.com/@actocodes) · [Apr 5](https://hashnode.com/posts/secure-error-handling/69d29536b6585258ea7b08f8)

### [Secure Error Handling in APIs: How to Implement Global Filters and Prevent Sensitive Data Leaks](https://actocodes.hashnode.dev/secure-error-handling?utm_source=hashnode&utm_medium=feed)

Error handling is one of the most overlooked attack surfaces in API security. While developers focus on authentication, authorization, and input validation, a poorly configured error response can sile

7 min read · [actocodes.hashnode.dev](https://actocodes.hashnode.dev/secure-error-handling?utm_source=hashnode&utm_medium=feed)

[Lalit Gujar](https://hashnode.com/@lalitgujjar) · [Mar 22](https://hashnode.com/posts/javascript-error-handling-writing-robust-code/69c01c75d9da55a9a5b52331)

### [JavaScript Error Handling: Writing Robust Code](https://javascriptcontent.hashnode.dev/javascript-error-handling-writing-robust-code?utm_source=hashnode&utm_medium=feed)

JavaScript Error Handling: Writing Robust Code

5 min read · [javascriptcontent.hashnode.dev](https://javascriptcontent.hashnode.dev/javascript-error-handling-writing-robust-code?utm_source=hashnode&utm_medium=feed)

[Matthias Bruns](https://hashnode.com/@matthiasbruns) · [Mar 16](https://hashnode.com/posts/go-error-handling-patterns-for-production-apis-beyond-basic-error-returns-1/69b7b4269990e3fefd5a0536)

### [Go Error Handling Patterns for Production APIs: Beyond Basic Error Returns](https://blog.matthiasbruns.com/go-error-handling-patterns-for-production-apis-beyond-basic-error-returns-1?utm_source=hashnode&utm_medium=feed)

Advanced Go error handling patterns for production APIs including structured errors, error wrapping, and observability integration. Learn how to build resilient APIs with proper error propagation and debugging capabilities.

7 min read · [blog.matthiasbruns.com](https://blog.matthiasbruns.com/go-error-handling-patterns-for-production-apis-beyond-basic-error-returns-1?utm_source=hashnode&utm_medium=feed)

[Matthias Bruns](https://hashnode.com/@matthiasbruns) · [Mar 12](https://hashnode.com/posts/go-error-handling-patterns-for-production-apis-beyond-basic-error-returns/69b2d70e852693b3b7498bd6)

### [Go Error Handling Patterns for Production APIs: Beyond Basic Error Returns](https://blog.matthiasbruns.com/go-error-handling-patterns-for-production-apis-beyond-basic-error-returns?utm_source=hashnode&utm_medium=feed)

Explore advanced Go error handling patterns for building robust production APIs, including structured errors, error wrapping, and observability integration.

8 min read · [blog.matthiasbruns.com](https://blog.matthiasbruns.com/go-error-handling-patterns-for-production-apis-beyond-basic-error-returns?utm_source=hashnode&utm_medium=feed)
