Tagged articles

CheckedException

4 articles · Page 1 of 1
Architect's Tech Stack
Architect's Tech Stack
Jan 8, 2026 · Backend Development

Why Spring @Transactional Skips Checked Exceptions—and How to Ensure Proper Rollback

This article explains Spring's @Transactional default rollback behavior, why checked exceptions like IOException don't trigger a rollback, illustrates the resulting data inconsistency with a money‑transfer example, and shows how to fix the issue by explicitly configuring the rollbackFor attribute.

@TransactionalCheckedExceptionRollback
0 likes · 8 min read
Why Spring @Transactional Skips Checked Exceptions—and How to Ensure Proper Rollback
21CTO
21CTO
Feb 17, 2020 · Fundamentals

Master Java Exceptions: Types, Handling, and Best Practices

This article explains Java exceptions, classifies them into Errors and Exceptions (including RuntimeException and CheckedException), describes how to handle them with try‑catch, throw, and throws, clarifies the difference between throw and throws, and offers practical best‑practice guidelines.

CheckedExceptionErrorException Handling
0 likes · 5 min read
Master Java Exceptions: Types, Handling, and Best Practices
Java Captain
Java Captain
Feb 20, 2018 · Fundamentals

Understanding and Proper Use of Checked Exceptions in Java

This article explains Java's exception hierarchy, distinguishes checked from unchecked exceptions, illustrates common pitfalls of overusing throws, and provides best‑practice guidelines for handling, documenting, and wrapping checked exceptions to improve API design and application robustness.

APIDesignBestPracticesCheckedException
0 likes · 14 min read
Understanding and Proper Use of Checked Exceptions in Java