CodeX
Published in

CodeX

Pragmatic error handling

I’ll present a simple and practical approach to error management, based on my experience.

This is the result of my analysis of the most common problems I found in enterprise applications. We’ll walk through some patterns and anti-patterns about creating, throwing, and handling exceptions.

Don’t centralize

Avoid exception hierarchies

Inheritance is often abused in the object-oriented paradigm. This also happens on exception…

--

--

--

Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

Stop Installing Python Packages Globally — Use Virtual Environments

Cory House on Clean Code

Big Data Fundamentals

Hibernate and database triggers

How to Face an Interview for Software Engineer?

How to root Bluboo X1

Root LG Phone

S3 Storage Tiers: Use cases and best practices

SSH Port Forwarding

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Luís Soares

Luís Soares

I write about Lean, TDD, CI/CD, trunk-based dev., user-centric dev, DDD, coding good practices, testing

More from Medium

DB-Lock-Issues with Transactional REQUIRES_NEW — More Spring/Java transaction handling pitfalls

My Tests are Broken Again, Part 1: Understanding the Problem

Siren Song

Mutation testing