Consistent Custom Exception Classes in Python

Written by transifex | Published 2020/10/31
Tech Story Tags: python-programming | python-web-development | learn-python | python-tips | python-developers | python | classes | coding

TLDRHaving to handle exceptions is common in Python and so is having to define your own. Yet, I have seen competing ways of doing so in various projects. The inconsistency comes from Exceptions being something that can easily be subclassed and extended, but also something that can be easily instantiated and used in their base form.via the TL;DR App

no story

Written by transifex | The #1 localization platform for developers.
Published by HackerNoon on 2020/10/31