I am not sure this is necessary: RuntimeError already encapsulates this 
somewhat well. You'll find RuntimeError already widely used, especially in 
concurrency where it is easy to get into a situation where the state is invalid 
for a specific action.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/I5YZI5KV4NNQBZWLEIXCKVCI3SECJEVI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to