public void query(int ofst, Sorting srtg, boolean force) throws EmptyListException, IndexOutOfBoundsException,
ListingException {
if(!force && listHandler.size() < 1) {
throw new EmptyListException("No list elements exist");
}
if(ofst < 0 || (!force && ofst > listHandler.size() - 1)) {
throw new IndexOutOfBoundsException("Listing offset " + ofst + " is out of bounds");
}