Nuacht

In the newer versions of Python (from 2.6) we are supposed to inherit our custom exception classes from Exception which (starting from Python 2.5) inherits from BaseException. classBaseException ...
# Item 51: Define a root exception to insulate callers from APIs # When you're defining a module's API, the exceptions you throw are just as # much a part of your interface as the functions and ...