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 MissingSortException extends
14: SVInstantiationExceptionWithPosition {
15:
16: private String toInstantiate;
17:
18: public MissingSortException(String toInstantiate, int row,
19: int column) {
20: super ("Missing Sort", row, column, false);
21: this .toInstantiate = toInstantiate;
22: }
23:
24: public String getMessage() {
25: String errmsg = super .getMessage();
26: errmsg += "\n Sort of "
27: + toInstantiate
28: + " is unknown.\n"
29: + "The sort can be given manually using an expression like \"id:sort\".";
30: return errmsg;
31: }
32:
33: /**
34: * Returns a string representation of this exception.
35: */
36: public String toString() {
37: return getMessage();
38: }
39: }
|