As a general rule, don't raise `RuntimeError` -- it makes catching this specific error hard. Make a specific exception class.