Class ParseException
public class ParseException extends Exception
{
// Fields
public int column;
public int line;
public Object owner;
// Constructors
public ParseException();
public ParseException(String s);
public ParseException(String s, int line, int column,
Object owner);
}
This class signals that a parsing exception of some sort has occurred.
Exception
|
+--ParseException
public ParseException();
Constructs a ParseException exception with no detail message.
public ParseException(String s);
Constructs a ParseException exception with a specified message.
Parameter | Description |
s
| The detail message.
|
public ParseException(String s, int line, int column, Object owner);
Constructs a ParseException exception with detail about what occurred.
Parameter | Description |
s
| The detail message.
|
line
| The line number of the input where the error was found.
|
column
| The position on the line.
|
owner
| The context in which the error was encountered. This is either an Entity object or a Parser object.
|
- column
- The position on the line where the error was found.
- line
- The line where the error was found.
- owner
- The parser context in which the error occurred.