01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10: package de.uka.ilkd.key.pp;
11:
12: public class AbbrevException extends Exception {
13:
14: protected boolean termused;
15:
16: public AbbrevException(String message, boolean termused) {
17: super (message);
18: this .termused = termused;
19: }
20:
21: /**
22: * returns true if the cause of the Exception was that the term is already
23: * mapped to a abbreviation. If false is returned the abbreviation is in use for
24: * another term.
25: */
26: public boolean TermUsed() {
27: return termused;
28: }
29:
30: }
|