rebuilding head
[mir.git] / source / mir / util / xml / html / HTMLParserExc.java
1 package mir.util.xml.html;\r
2 \r
3 /**\r
4  * Exception during parsing with optional location information.\r
5  */\r
6 \r
7 public class HTMLParserExc extends multex.Exc {\r
8   private boolean hasLocation;\r
9   private int lineNr;\r
10   private int columnNr;\r
11 \r
12   public HTMLParserExc(String aMessage) {\r
13     super(aMessage);\r
14     hasLocation = false;\r
15   }\r
16 \r
17   protected void setLocation(int aLineNr, int aColumnNr) {\r
18     lineNr = aLineNr;\r
19     columnNr = aColumnNr;\r
20     hasLocation = true;\r
21   }\r
22 \r
23   public boolean getHasLocation() {\r
24     return hasLocation;\r
25   }\r
26 \r
27   public int getLineNr() {\r
28     return lineNr;\r
29   }\r
30 \r
31   public int getColumnNr() {\r
32     return columnNr;\r
33   }\r
34 }\r