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

Tag

# #exception

38 posts · 0 followers

[Oluwaseyi Fatunmole](https://hashnode.com/@foluwaseyi) · [May 27](https://hashnode.com/posts/advanced-error-handling-in-dart-records-result-types-monads-and-freezed-exceptions/6a17657ebadcd8afcb2bcdb4)

### [Advanced Error Handling in Dart: Records, Result Types, Monads, and Freezed Exceptions](https://freecodecamp.org/news/advanced-error-handling-in-dart-records-result-types-monads-and-freezed-exceptions?utm_source=hashnode&utm_medium=feed)

Every Dart developer has written this at some point: try { final user = await repository.getUser(id); // do something with user } catch (e) { // what is e? who knows. print(e.toString()); } I

21 min read · [freecodecamp.org](https://freecodecamp.org/news/advanced-error-handling-in-dart-records-result-types-monads-and-freezed-exceptions?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [May 5](https://hashnode.com/posts/methods-to-move-cross-cutting-logic-out-of-controllers-without-building-a-mystery-box/69f9b1a2608b1f76d5a51ca6)

### [Methods to Move Cross-Cutting Logic Out of Controllers Without Building a Mystery Box](https://tuanhnet.hashnode.dev/methods-to-move-cross-cutting-logic-out-of-controllers-without-building-a-mystery-box?utm_source=hashnode&utm_medium=feed)

Practical, expert patterns for extracting logging, validation, security, metrics, and transaction concerns out of Spring controllers while preserving clarity, testability, and predictable performance—no opaque "magic" layers, only explicit, maint...

11 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/methods-to-move-cross-cutting-logic-out-of-controllers-without-building-a-mystery-box?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Apr 5](https://hashnode.com/posts/reasons-your-unique-constraint-is-not-a-complete-concurrency-strategy/69d224b368f4bd877f0275b7)

### [Reasons Your Unique Constraint Is Not a Complete Concurrency Strategy](https://tuanhnet.hashnode.dev/reasons-your-unique-constraint-is-not-a-complete-concurrency-strategy?utm_source=hashnode&utm_medium=feed)

A deep technical exploration of why relying solely on a database unique constraint is insufficient for concurrency control. Covers DB behaviors, Java examples (JDBC/JPA), performance implications, edge cases, retry strategies, advisory locks, and...

11 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/reasons-your-unique-constraint-is-not-a-complete-concurrency-strategy?utm_source=hashnode&utm_medium=feed)

[Ganesh Rama Hegde](https://hashnode.com/@hegde10122) · [Feb 16](https://hashnode.com/posts/chapter-21-usecase18-exception-handling-in-flow/699362c3276878bb42427b94)

### [Chapter 21 : UseCase18 - Exception Handling in Flow](https://kotlinflow.hashnode.dev/chapter-21-usecase18-exception-handling-in-flow?utm_source=hashnode&utm_medium=feed)

Flow gives us structured exception handling. Business Scenario We will: Process stocks Throw an artificial exception for demonstration Handle it safely using catch Continue flow gracefully Code Implementation package org.kotlinflowlearner.stock...

3 min read · [kotlinflow.hashnode.dev](https://kotlinflow.hashnode.dev/chapter-21-usecase18-exception-handling-in-flow?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Feb 5](https://hashnode.com/posts/series-of-interview-questions-for-backend-developers-part-4/69845c395660ae2d43b84512)

### [Series of Interview Questions for Backend Developers Part 4](https://tuanhnet.hashnode.dev/series-of-interview-questions-for-backend-developers-part-4?utm_source=hashnode&utm_medium=feed)

When a backend developer says they “know Java,” what interviewers really want to see is whether you understand what happens under the hood: how classes are loaded, why tiny details like Integer caching matter, and how the JIT and escape analysis ...

17 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/series-of-interview-questions-for-backend-developers-part-4?utm_source=hashnode&utm_medium=feed)

[Ashifur Rahaman](https://hashnode.com/@ashif-arsb) · [Jan 10](https://hashnode.com/posts/aspnet-core-exception-filter/69628bb5d34d77ea198137f2)

### [ASP.NET Core: Exception Filter](https://aspnetcore.hashnode.dev/aspnet-core-exception-filter?utm_source=hashnode&utm_medium=feed)

Exception Filters (IExceptionFilter, IAsyncExceptionFilter) are a specialized type of MVC filter designed to catch unhandled exceptions that occur strictly during the execution of a Controller Action or its Action Filters. Unlike global middleware (w...

6 min read · [aspnetcore.hashnode.dev](https://aspnetcore.hashnode.dev/aspnet-core-exception-filter?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 31, 2025](https://hashnode.com/posts/reasons-your-api-returns-403-with-a-valid-token-and-how-to-fix-missing-role-mapping/6954e63b7b47f57b1b46721a)

### [Reasons Your API Returns 403 With a Valid Token — and How to Fix Missing Role Mapping](https://tuanhnet.hashnode.dev/reasons-your-api-returns-403-with-a-valid-token-and-how-to-fix-missing-role-mapping?utm_source=hashnode&utm_medium=feed)

You finally get JWT verification green across the board, the signature checks out, the issuer is legit, and yet the API responds with a stubborn 403. No stack trace fireworks, no smoking gun—just Access Denied. If that feels like being carded at ...

9 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/reasons-your-api-returns-403-with-a-valid-token-and-how-to-fix-missing-role-mapping?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 11, 2025](https://hashnode.com/posts/techniques-to-configure-serverservletcontext-path-and-log-404-errors-separately-in-spring-boot/693a8823bbcea82aac54c1fc)

### [Techniques to Configure server.servlet.context-path and Log 404 Errors Separately in Spring Boot](https://tuanhnet.hashnode.dev/techniques-to-configure-serverservletcontext-path-and-log-404-errors-separately-in-spring-boot?utm_source=hashnode&utm_medium=feed)

When working with complex microservices or multi-tenant systems, a small detail like the context-path can make a big difference in routing, logging, and debugging your API. Yet, developers often overlook how this setting affects error handling—es...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-to-configure-serverservletcontext-path-and-log-404-errors-separately-in-spring-boot?utm_source=hashnode&utm_medium=feed)

[Aú Desviante](https://hashnode.com/@audesviante) · [Oct 22, 2025](https://hashnode.com/posts/arrays-exceptions/68f9237cc1b3c1c6af864585)

### [Arrays exceptions](https://audesviante.hashnode.dev/arrays-exceptions?utm_source=hashnode&utm_medium=feed)

Diferentes tipos de exceções podem surgir ao processar um array. Para evitá-las, você deve estar ciente das situações mais comuns e seguir um conjunto de boas práticas. NullPointerException O Array é um tipo de referência, isso significa, entre outra...

3 min read · [audesviante.hashnode.dev](https://audesviante.hashnode.dev/arrays-exceptions?utm_source=hashnode&utm_medium=feed)

[Brett Rowberry](https://hashnode.com/@brettrowberry) · [Oct 9, 2025](https://hashnode.com/posts/clojure-plus-plus-prime-and-unchecked-add/68e72d21b1cfe8efcfa2e4a9)

### [Clojure +, +', and unchecked-add](https://brettrowberry.com/clojure-plus-plus-prime-and-unchecked-add?utm_source=hashnode&utm_medium=feed)

\+ In Clojure core there’s a handy function, +. I’ll bet you know what it does: (+ 1 2 3) ;;=> 6 Let’s introduce a handy function as we explore: (defn value-and-type \[& args\] (map (juxt identity type) args)) Let’s look at the largest supported L...

1 min read · [brettrowberry.com](https://brettrowberry.com/clojure-plus-plus-prime-and-unchecked-add?utm_source=hashnode&utm_medium=feed)
