Oct. 12, 2022, 4:02 p.m. | Marcin Kozak

Towards Data Science - Medium towardsdatascience.com

Python has so many built-in exceptions that we rarely need to create and use custom ones. Or do we?

Custom exceptions: Own your own error. Photo by Brett Jordan on Unsplash

Should we use custom exceptions or built-in ones? That’s a very good question, actually. Some say,

Avoid custom exceptions at all costs. There are so many built-in exceptions that you seldom need a custom one, if ever.

Others say,

Use custom exceptions in your projects. Leave built-in exceptions to …

data science error-handling exception programming python

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York