KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > defaults > PicoVisitorTraversalException


1 /*
2  * Copyright (C) 2004 Joerg Schaible
3  * Created on 06.10.2004 by joehni
4  */

5 package org.picocontainer.defaults;
6
7 import org.picocontainer.PicoException;
8 import org.picocontainer.PicoVisitor;
9
10
11 /**
12  * Exception for a PicoVisitor, that is dependent on a defined starting point of the traversal.
13  * If the traversal is not initiated with a call of {@link PicoVisitor#traverse}
14  *
15  * @author joehni
16  * @since 1.1
17  */

18 public class PicoVisitorTraversalException
19         extends PicoException {
20
21     /**
22      * Construct the PicoVisitorTraversalException.
23      *
24      * @param visitor The visitor casing the exception.
25      */

26     public PicoVisitorTraversalException(PicoVisitor visitor) {
27         super("Traversal for PicoVisitor of type " + visitor.getClass().getName() + " must start with the visitor's traverse method");
28     }
29 }
30
Popular Tags