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: [contents of Message property]

Namespace:  SingularSys.Jep.Parser
Assembly:  Jep (in Jep.dll) Version: 1.1.0.0 (1.0.0)

Syntax

C#
public ParseException(
	Token currentTokenVal,
	int[][] expectedTokenSequencesVal,
	string[] tokenImageVal
)
Visual Basic (Declaration)
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: SingularSys.Jep.ConfigurableParser.Tokens..::.Token
expectedTokenSequencesVal
Type: array< array< System..::.Int32 >[]()[] >[]()[]
tokenImageVal
Type: array< System..::.String >[]()[]

See Also