public class ParseException
extends org.xml.sax.SAXException
| Constructor and Description |
|---|
ParseException(java.lang.Exception e)
Creates a new ParseException with the given root exception.
|
ParseException(java.lang.Exception e,
org.xml.sax.Locator locator)
Creates a new ParseException with the given root exception and the
locator.
|
ParseException(java.lang.String message)
Creates a new ParseException with the given message.
|
ParseException(java.lang.String message,
java.lang.Exception e)
Creates a new ParseException with the given message and root exception.
|
ParseException(java.lang.String message,
java.lang.Exception e,
org.xml.sax.Locator locator)
Creates a new ParseException with the given message, root exception and
the locator.
|
ParseException(java.lang.String message,
org.xml.sax.Locator locator)
Creates a new ParseException with the given message and the locator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the column of the parse position where the error occured.
|
int |
getLine()
Returns the line of the parse position where the error occured.
|
java.lang.String |
getMessage()
Modifies the message to give more detailed location information.
|
void |
printStackTrace(java.io.PrintStream stream)
Prints the stack trace to the specified stream.
|
void |
printStackTrace(java.io.PrintWriter writer)
Prints the stack trace to the specified writer.
|
java.lang.String |
toString()
Override toString to pick up any embedded exception.
|
public ParseException(java.lang.String message)
message - the messagepublic ParseException(java.lang.Exception e)
e - the exceptionpublic ParseException(java.lang.String message,
java.lang.Exception e)
message - the messagee - the exceptionpublic ParseException(java.lang.String message,
org.xml.sax.Locator locator)
message - the messagelocator - the locator of the parserpublic ParseException(java.lang.Exception e,
org.xml.sax.Locator locator)
e - the exceptionlocator - the locator of the parserpublic ParseException(java.lang.String message,
java.lang.Exception e,
org.xml.sax.Locator locator)
message - the messagee - the exceptionlocator - the locator of the parserpublic java.lang.String getMessage()
getMessage in class org.xml.sax.SAXExceptionpublic int getLine()
public int getColumn()
public void printStackTrace(java.io.PrintStream stream)
printStackTrace in class java.lang.Throwablestream - the output stream.public java.lang.String toString()
toString in class org.xml.sax.SAXExceptionpublic void printStackTrace(java.io.PrintWriter writer)
printStackTrace in class java.lang.Throwablewriter - the writer.