S
Steven D'Aprano
Useful or a bad idea?
I have a module that defines a number of exceptions which inherit from
various built-ins like KeyError, ValueError etc. I'm considering defining
an abstract module exception like MyModuleError, and having all my real
exceptions inherit from it as well, but I don't recall seeing that done
before and I was wondering if it were a bad idea for some reason.
I have a module that defines a number of exceptions which inherit from
various built-ins like KeyError, ValueError etc. I'm considering defining
an abstract module exception like MyModuleError, and having all my real
exceptions inherit from it as well, but I don't recall seeing that done
before and I was wondering if it were a bad idea for some reason.