Some languages can do it, but most can't do you either throw an error or do something reasonable. In this case just returning min would be reasonable.