Don't use `RuntimeError`, use something more specific.