|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hmi.xml.XMLScanException
public class XMLScanException
XMLScanException is a RuntimeException that is thrown when a XML input that is not lexically well-formed is scanned, or if an unexpected End-Of-Data is reached.
| Field Summary | |
|---|---|
private int |
charPos
|
private String |
currentTokenString
|
private String |
file
|
private int |
line
|
private static long |
serialVersionUID
|
private int |
tokenCharPos
|
private int |
tokenLine
|
private String |
url
|
| Constructor Summary | |
|---|---|
XMLScanException()
default constructor for XMLScanExceptions. |
|
XMLScanException(String s)
XMLScanExceptions with a String text attribute. |
|
XMLScanException(String s,
String file,
String url,
int tokenLine,
int tokenCharPos,
int line,
int charPos)
XMLScanExceptions with a String text attribute. |
|
| Method Summary | |
|---|---|
String |
currentTokenString()
|
int |
getCharPos()
returns the current character position within the current line. character counts start at 1 for the first character within the line. |
String |
getFile()
|
int |
getLine()
returns the current line number; line counts start at 1. |
int |
getTokenCharPos()
returns the character position of the start of the current token. |
int |
getTokenLine()
returns the starting line number of the start of the the current token. line counting starts at 1. |
String |
getUrl()
|
String |
toString()
produces the error message |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int line
private int tokenLine
private int charPos
private int tokenCharPos
private String currentTokenString
private String url
private String file
private static final long serialVersionUID
| Constructor Detail |
|---|
public XMLScanException()
public XMLScanException(String s)
public XMLScanException(String s,
String file,
String url,
int tokenLine,
int tokenCharPos,
int line,
int charPos)
| Method Detail |
|---|
public String toString()
toString in class Throwablepublic final int getLine()
public final int getCharPos()
public final int getTokenLine()
public final int getTokenCharPos()
public final String currentTokenString()
public String getUrl()
public String getFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||