The following link is a good reference document on python exceptions
https://docs.python.org/2/library/exceptions.html