Throw an error if bounds aren't specified.