
Sept. 3, 2022
5:56 p.m.
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.