Java Learner logo

Module 8: Exception Handling and Debugging

Lesson focus

Mini-Project: Resilient File Reader

Build a CLI tool that reads files, validates format, and reports issues gracefully.

Implement try-with-resources for file streams and wrap parsing errors in custom exceptions.

Log recoverable issues and continue processing subsequent files to keep the tool resilient.

Add command-line flags for verbosity, output summaries, and optional JSON error reports.

Lesson quiz

What is a key success metric for the mini-project?

Next lesson →