Constructor 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 "currentToken", "expectedTokenSequences", and "tokenImage" set.
Declaration
public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, string[] tokenImageVal)
Parameters
Type | Name | Description |
---|---|---|
Token | currentTokenVal | |
System.Int32[][] | expectedTokenSequencesVal | |
System.String[] | tokenImageVal |
ParseException()
The following constructors are for use by you for whatever purpose you can think of. Constructing the exception in this manner makes the exception behave in the normal way - i.e., as documented in the class "Throwable". The fields "errorToken", "expectedTokenSequences", and "tokenImage" do not contain relevant information. The JavaCC generated code does not use these constructors.
Declaration
public ParseException()
ParseException(IMessage)
Constructor with message.
Declaration
public ParseException(IMessage message)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message |
ParseException(SerializationInfo, StreamingContext)
Initializes a new instance of this class with serialized data.
Declaration
public ParseException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |