|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.apache.batik.xml.scanner.LexicalException
Signals that a lexical exception of some sort has occurred.
Field Summary | |
protected int |
columnNumber
|
protected java.lang.Exception |
exception
|
protected int |
lineNumber
|
Constructor Summary | |
LexicalException(java.lang.Exception e)
Creates a new LexicalException wrapping an existing exception. |
|
LexicalException(java.lang.String message,
java.lang.Exception e)
Creates a new LexicalException from an existing exception. |
|
LexicalException(java.lang.String message,
int line,
int column)
Creates a new LexicalException. |
Method Summary | |
int |
getColumnNumber()
Returns the column of the last parsed character. |
java.lang.Exception |
getException()
Return the embedded exception, if any. |
int |
getLineNumber()
Returns the line of the last parsed character. |
java.lang.String |
getMessage()
Return a detail message for this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Exception exception
protected int lineNumber
protected int columnNumber
Constructor Detail |
public LexicalException(java.lang.String message, int line, int column)
message
- The error or warning message.line
- The line of the last parsed character.column
- The column of the last parsed character.public LexicalException(java.lang.Exception e)
The existing exception will be embedded in the new one, and its message will become the default message for the LexicalException.
e
- The exception to be wrapped in a LexicalException.public LexicalException(java.lang.String message, java.lang.Exception e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.e
- The exception to be wrapped in a SAXException.Method Detail |
public java.lang.String getMessage()
If there is a embedded exception, and if the ParseException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class java.lang.Throwable
public java.lang.Exception getException()
public int getLineNumber()
public int getColumnNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |