01: /*
02: * xtc - The eXTensible Compiler
03: * Copyright (C) 2004, 2007 Robert Grimm
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License
07: * version 2 as published by the Free Software Foundation.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17: * USA.
18: */
19: package xtc.tree;
20:
21: /**
22: * A visitor exception is thrown when no appropriate
23: * <code>visit()</code> or <code>process()</code> method can be found.
24: *
25: * @author Robert Grimm
26: * @version $Revision: 1.6 $
27: */
28: public class VisitorException extends TraversalException {
29:
30: /**
31: * Create a new visitor exception with the specified detail message.
32: *
33: * @param message The detail message.
34: */
35: public VisitorException(String message) {
36: super (message);
37: }
38:
39: /**
40: * Create a new visitor exception with the specified detail message
41: * and cause.
42: *
43: * @param message The detail message.
44: * @param cause The cause.
45: */
46: public VisitorException(String message, Throwable cause) {
47: super(message, cause);
48: }
49:
50: }
|