I found the Manually raising (throwing) an exception in Python question today. No doubt that it has good answers. But the question itself is too broad and doesn't show any research effort. I thought that questions like "How do I do that? (I'm too lazy to read the basic documentation or try something)" are plain not welcome here.
This question is referring to historical significance of old questions. Please understand - I'm really asking about this specific example of asking for basic language construct which is broadly described in official Python documentation which was available in 2012. Come on. Asking Google How can I raise an exception in Python
gives https://docs.python.org/2/tutorial/errors.html as the first result...