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: package de.uka.ilkd.key.speclang;
09:
10: import de.uka.ilkd.key.proof.init.ProofInputException;
11:
12: public class SLTranslationError extends java.lang.Exception {
13:
14: private String msg = "";
15:
16: private int line = -1;
17: private int col = -1;
18:
19: public SLTranslationError(String msg, int line, int col) {
20: this .msg = msg;
21: this .line = line;
22: this .col = col;
23: }
24:
25: /**
26: * returns a message describing the problem
27: */
28: public String getMessage() {
29: return this .msg;
30: }
31:
32: /**
33: * returns the line number within the parsed specification
34: * @return
35: */
36: public int getLine() {
37: return this .line;
38: }
39:
40: /**
41: * returns the column number within the parsed specification
42: * @return
43: */
44: public int getColumn() {
45: return this.col;
46: }
47:
48: }
|