A exception that is thrown when an operation is attempted on an empty (nil) list that actually requires a list of length one or more.
863864865866867868869870871872873
Action.Read).mapWith(new SecuredListMap()); try { if (!iter.hasNext()) { throw new EmptyListException( "Attempted to delete the head of a nil list"); } final SecuredRDFList cell = iter.next(); final Statement s = cell.getRequiredProperty(RDF.first); checkDelete(s);
998999100010011002100310041005100610071008
{ return replace(0, value); } else { throw new EmptyListException( "Tried to set the head of an empty list"); } } finally {