01: /*
02: * User: Michael Rettig
03: * Date: Oct 22, 2002
04: * Time: 2:45:08 PM
05: */
06: package net.sourceforge.jaxor.parser;
07:
08: import net.sourceforge.jaxor.util.SystemException;
09: import org.xml.sax.Locator;
10:
11: public class ParseException extends SystemException {
12:
13: public ParseException(Exception e, Locator locator) {
14: super (createMsg("", locator), e);
15: }
16:
17: public ParseException(String msg, Exception exc, Locator locator) {
18: super (createMsg(msg, locator), exc);
19: }
20:
21: public ParseException(String msg, Locator locator) {
22: super (createMsg(msg, locator));
23: }
24:
25: private static String createMsg(String msg, Locator locator) {
26: return msg + " line number: " + locator.getLineNumber()
27: + " column: " + locator.getColumnNumber();
28: }
29: }
|