Like you said, an exception would be thrown. This implies unexpected behavior which should be avoided at all cost.