/**
 * Copyright 2009 University of Oxford
 *
 * Written by Arno Mittelbach for the Erewhon Project
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions are met:
 *
 *  - Redistributions of source code must retain the above copyright notice, 
 *    this list of conditions and the following disclaimer.
 *  - Redistributions in binary form must reproduce the above copyright notice, 
 *    this list of conditions and the following disclaimer in the documentation 
 *    and/or other materials provided with the distribution.
 *  - Neither the name of the University of Oxford nor the names of its 
 *    contributors may be used to endorse or promote products derived from this 
 *    software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sf.gaboto;

import net.sf.gaboto.node.GabotoEntity;


/**
 * Is thrown when an {@link GabotoEntity} is accessed that does not exist in the model.
 * 
 * An unchecked exception, as it is thrown internally when there is little if anything a 
 * programmer can do about it. 
 * 
 *  Arguably it could be split into EntityDoesNotExistException and EntityDoesNotExistRuntimeException.
 *
 */
public class EntityDoesNotExistException extends GabotoRuntimeException {

	private static final long serialVersionUID = 4587236593997582145L;

	public EntityDoesNotExistException(GabotoEntity entity){
		super("The entity " + entity.getUri() + " does not exist.");
	}
	
	public EntityDoesNotExistException(String entityURI){
		super("The entity " + entityURI + " does not exist.");
	}
}

@@ -2267,32 +2267,41 @@
 per(%22The entity 
+with URI 
 %22 + entity.getUr
@@ -2407,16 +2407,25 @@
  entity 
+with URI 
 %22 + enti

Make error text a little easier