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 currentToken, int[][] expectedTokenSequences, string[] tokenImage)
Parameters
Type | Name | Description |
---|---|---|
Token | currentToken | |
System.Int32[][] | expectedTokenSequences | |
System.String[] | tokenImage |
ParseException()
Declaration
public ParseException()
ParseException(String)
Declaration
public ParseException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
ParseException(String, Exception)
Declaration
public ParseException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | innerException |
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. |