Class was supporting limit + offset or limit, but only offset does not support

Class was supporting limit + offset or limit, but only offset does not support