| java.lang.Object java.lang.Throwable java.lang.Exception org.xml.sax.SAXException org.jfree.xml.ParseException
All known Subclasses: org.jfree.xml.ElementDefinitionException,
ParseException | public class ParseException extends SAXException (Code) | | A parse exception.
author: Thomas Morgner |
Method Summary | |
protected void | fillLocation(Locator locator) Fills the location with the given locator. | public int | getColumn() Returns the column of the parse position where the error occured. | public int | getLine() Returns the line of the parse position where the error occured. | public String | getMessage() Modifies the message to give more detailed location information. | public void | printStackTrace(PrintStream stream) Prints the stack trace to the specified stream. | public void | printStackTrace(PrintWriter writer) Prints the stack trace to the specified writer. | public String | toString() Override toString to pick up any embedded exception. |
ParseException | public ParseException(String message)(Code) | | Creates a new ParseException with the given message.
Parameters: message - the message |
ParseException | public ParseException(Exception e)(Code) | | Creates a new ParseException with the given root exception.
Parameters: e - the exception |
ParseException | public ParseException(String s, Exception e)(Code) | | Creates a new ParseException with the given message and root exception.
Parameters: s - the message Parameters: e - the exception |
ParseException | public ParseException(String message, Locator locator)(Code) | | Creates a new ParseException with the given message and the locator.
Parameters: message - the message Parameters: locator - the locator of the parser |
ParseException | public ParseException(Exception e, Locator locator)(Code) | | Creates a new ParseException with the given root exception
and the locator.
Parameters: e - the exception Parameters: locator - the locator of the parser |
ParseException | public ParseException(String s, Exception e, Locator locator)(Code) | | Creates a new ParseException with the given message, root exception
and the locator.
Parameters: s - the message Parameters: e - the exception Parameters: locator - the locator of the parser |
fillLocation | protected void fillLocation(Locator locator)(Code) | | Fills the location with the given locator.
Parameters: locator - the locator or null. |
getColumn | public int getColumn()(Code) | | Returns the column of the parse position where the error occured.
the column number or -1 if not known. |
getLine | public int getLine()(Code) | | Returns the line of the parse position where the error occured.
the line number or -1 if not known. |
getMessage | public String getMessage()(Code) | | Modifies the message to give more detailed location information.
the modified exception message. |
printStackTrace | public void printStackTrace(PrintStream stream)(Code) | | Prints the stack trace to the specified stream.
Parameters: stream - the output stream. |
printStackTrace | public void printStackTrace(PrintWriter writer)(Code) | | Prints the stack trace to the specified writer.
Parameters: writer - the writer. |
toString | public String toString()(Code) | | Override toString to pick up any embedded exception.
A string representation of this exception. |
|
|