Class ParseException
This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method GenerateParseException in the generated parser.
You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.
Inheritance
Inherited Members
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Serializable]
public class ParseException : Exception, ISerializable, _Exception
Constructors
Name | Description |
---|---|
ParseException() | |
ParseException(Token, Int32[][], String[]) | This constructor is used by the method GenerateParseException()
in the generated parser. Calling this constructor generates
a new object of this type with the fields |
ParseException(SerializationInfo, StreamingContext) | Initializes a new instance of this class with serialized data. |
ParseException(String) | |
ParseException(String, Exception) |
Fields
Name | Description |
---|---|
eol | The end of line string for this machine. |
Properties
Name | Description |
---|---|
CurrentToken | This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token following this token will (therefore) be the first error token. |
ExpectedTokenSequences | Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse. |
TokenImage | This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. This array is defined in the generated ...Constants interface. |