For example, convert the string 'ZeroDivisionError' to the Python class ZeroDivisionError.
One obvious way of doing it is by using an if-else structure, but it is not feasible to do it for all the exceptions present in Python 3.
How do I do this?