Skip to main content

Posts

Learning Python : Custom Exceptions

As part of my learning experience of Python I was intrigued to find how custom exceptions are implemented. Create a stub with an Error class inherited from the Exception class, and create customized exception classes derived from this class. Structured exception handling resembles that of C#. This language takes features from C and C++ (and even C#), but the implementation is really simple and straightforward. IEEE has published results of a survey and this appears to be the most promising computer language the world over. As compared to a serpent with the same name, this variant appears to be a gregarious beast :-) Code sample is available as a download @ https://drive.google.com/open?id=1SoDXj4_h1b7qlf31VHKyMf9hszK8nmsK . -->