| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.batik.css.parser.ParseException
ParseException | public class ParseException extends RuntimeException (Code) | | This class encapsulates a general parse error or warning.
This class can contain basic error or warning information from
either the parser or the application.
If the application needs to pass through other types of
exceptions, it must wrap those exceptions in a ParseException.
author: Stephane Hillion version: $Id: ParseException.java 475685 2006-11-16 11:16:05Z cam $ |
columnNumber | protected int columnNumber(Code) | | |
lineNumber | protected int lineNumber(Code) | | |
ParseException | public ParseException(String message, int line, int column)(Code) | | Creates a new ParseException.
Parameters: message - The error or warning message. Parameters: line - The line of the last parsed character. Parameters: column - The column of the last parsed character. |
ParseException | public ParseException(Exception e)(Code) | | Creates a new ParseException wrapping an existing exception.
The existing exception will be embedded in the new
one, and its message will become the default message for
the ParseException.
Parameters: e - The exception to be wrapped in a ParseException. |
ParseException | public ParseException(String message, Exception e)(Code) | | Creates a new ParseException from an existing exception.
The existing exception will be embedded in the new
one, but the new exception will have its own message.
Parameters: message - The detail message. Parameters: e - The exception to be wrapped in a SAXException. |
getColumnNumber | public int getColumnNumber()(Code) | | Returns the column of the last parsed character.
|
getException | public Exception getException()(Code) | | Return the embedded exception, if any.
The embedded exception, or null if there is none. |
getLineNumber | public int getLineNumber()(Code) | | Returns the line of the last parsed character.
|
getMessage | public String getMessage()(Code) | | Return a detail message for this exception.
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.
The error or warning message. |
|
|