java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.batik.parser.ParseException
- All Implemented Interfaces:
- java.io.Serializable
- public class ParseException
- extends java.lang.RuntimeException
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.
- Version:
- $Id: ParseException.java,v 1.3 2004/08/18 07:14:47 vhardy Exp $
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
exception
protected java.lang.Exception exception
lineNumber
protected int lineNumber
columnNumber
protected int columnNumber
ParseException
public ParseException(java.lang.String message,
int line,
int column)
- Creates a new ParseException.
ParseException
public ParseException(java.lang.Exception e)
- 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.
ParseException
public ParseException(java.lang.String message,
java.lang.Exception e)
- 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.
getMessage
public java.lang.String getMessage()
- 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.
getException
public java.lang.Exception getException()
- Return the embedded exception, if any.
getLineNumber
public int getLineNumber()
- Returns the line of the last parsed character.
getColumnNumber
public int getColumnNumber()
- Returns the column of the last parsed character.