I think a `TypeError` would be more appropriate.