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 "currentToken", "expectedTokenSequences", and "tokenImage" set. The boolean flag "specialConstructor" is also set to true to indicate that this constructor was used to create this object. This constructor calls its super class with the empty string to force the "toString" method of parent class "Throwable" to print the error message in the form: ParseException: <result of getMessage>

Namespace: Lucene.Net.QueryParsers
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public ParseException(
	Token currentTokenVal,
	int[][] expectedTokenSequencesVal,
	string[] tokenImageVal
)
Visual Basic
Public Sub New ( _
	currentTokenVal As Token, _
	expectedTokenSequencesVal As Integer()(), _
	tokenImageVal As String() _
)
Visual C++
public:
ParseException(
	Token^ currentTokenVal, 
	array<array<int>^>^ expectedTokenSequencesVal, 
	array<String^>^ tokenImageVal
)

Parameters

currentTokenVal
Type: Lucene.Net.QueryParsers..::..Token

[Missing <param name="currentTokenVal"/> documentation for "M:Lucene.Net.QueryParsers.ParseException.#ctor(Lucene.Net.QueryParsers.Token,System.Int32[][],System.String[])"]

expectedTokenSequencesVal
Type: array<array<System..::..Int32>[]()[][]>[]()[][]

[Missing <param name="expectedTokenSequencesVal"/> documentation for "M:Lucene.Net.QueryParsers.ParseException.#ctor(Lucene.Net.QueryParsers.Token,System.Int32[][],System.String[])"]

tokenImageVal
Type: array<System..::..String>[]()[][]

[Missing <param name="tokenImageVal"/> documentation for "M:Lucene.Net.QueryParsers.ParseException.#ctor(Lucene.Net.QueryParsers.Token,System.Int32[][],System.String[])"]

See Also