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:
11: package de.uka.ilkd.key.proof;
12:
13: public class SVRigidnessException extends
14: SVInstantiationExceptionWithPosition {
15:
16: private String toInstantiate;
17:
18: public SVRigidnessException(String toInstantiate, int row,
19: int column) {
20: super ("Non-rigid term/formula", row, column, false);
21: this .toInstantiate = toInstantiate;
22: }
23:
24: public String getMessage() {
25: String errmsg = super .getMessage();
26: errmsg += "\n " + toInstantiate
27: + " may be instantiated with rigid terms/formulas only";
28: return errmsg;
29: }
30:
31: /**
32: * Returns a string representation of this exception.
33: */
34: public String toString() {
35: return getMessage();
36: }
37: }
|