/*
 * Created on Aug 12, 2005
 * 
 * $Log$
 * Revision 1.2  2005/09/21 22:00:45  dsowen
 * Split out the access stuff into accesslib.
 * New Creator interface off-loads object creation to user.
 *
 * Revision 1.1  2005/08/12 19:01:46  dsowen
 * Feature: can automatically fill missing parts of a graph.
 *
 */
package ws.fugue88.jpath;

/**
 * @author dsowen
 */
public class BrokenGraphException extends Exception {

	public BrokenGraphException(final Context context, final Path path,
			final Object parent, final PathPart child)
	{
		super("Graph broken for path '" + child + "' on object {" + parent
				+ "}, accessed from context " + context + " at '" + path + "'.");

		_context = context;
		_path = path;
		_parent = parent;
		_child = child;
	}

	private final Context _context;
	private final Path _path;
	private final Object _parent;
	private final PathPart _child;
}