001 /*
002 * Copyright (C) 2004 Joerg Schaible
003 * Created on 06.10.2004 by joehni
004 */
005 package org.picocontainer.defaults;
006
007 import org.picocontainer.PicoException;
008 import org.picocontainer.PicoVisitor;
009
010
011 /**
012 * Exception for a PicoVisitor, that is dependent on a defined starting point of the traversal.
013 * If the traversal is not initiated with a call of {@link PicoVisitor#traverse}
014 *
015 * @author joehni
016 * @since 1.1
017 */
018 public class PicoVisitorTraversalException
019 extends PicoException {
020
021 /**
022 * Construct the PicoVisitorTraversalException.
023 *
024 * @param visitor The visitor casing the exception.
025 */
026 public PicoVisitorTraversalException(PicoVisitor visitor) {
027 super("Traversal for PicoVisitor of type " + visitor.getClass().getName() + " must start with the visitor's traverse method");
028 }
029 }