Probably want to raise a more specific exception type here.