1 /***
2 * GeoVISTA Center (Penn State, Dept. of Geography)
3 * Copyright (c), 1999 - 2002, GeoVISTA Center
4 * All Rights Researved.
5 *
6 * @author Jin Chen
7 * This Exception is raised when edu.psu.geovista.app.spreadsheet.formula.Formula fails in tokenizing or parsing the
8 * edu.psu.geovista.app.spreadsheet.formula.
9 * @author Jin Chen
10 */
11
12 package edu.psu.geovista.app.spreadsheet.exception;
13
14
15
16 public class ParserException extends Exception {
17 private boolean quiet;
18 private String msg;
19
20 /***
21 * Contructor for edu.psu.geovista.app.spreadsheet.exception.ParserException. By default, sets quiet to true.
22 */
23 public ParserException() { quiet = true; };
24
25 /***
26 * @param msg the error message string
27 */
28 public ParserException(String msg) { super(msg); this.msg = msg; };
29
30 /***
31 * @param msg the error object
32 */
33 public ParserException(Object msg) {
34 super(msg.toString());
35 this.msg = msg.toString();
36 };
37
38 /***
39 * This returns the value of quiet.
40 *
41 * @return true if quiet is true, false otherwise
42 */
43 public boolean isQuiet() { return quiet; }
44
45 /***
46 * toString method for edu.psu.geovista.app.spreadsheet.exception.ParserException.
47 *
48 * @return the error message string
49 */
50 public String toString() { return msg; }
51 }
52
53
54
55
56
57
58
59
60
61
This page was automatically generated by Maven