Class ParserRuleCallBindingException
Reports deterministic validation failures from positional literal parser rule-call binding.
public sealed class ParserRuleCallBindingException : InvalidOperationException, ISerializable
- Inheritance
-
ParserRuleCallBindingException
- Implements
- Inherited Members
- Extension Methods
Constructors
ParserRuleCallBindingException(string, string?, string, int?, string?, string?)
Initializes a parser rule-call binding exception.
public ParserRuleCallBindingException(string ruleName, string? rawArguments, string reason, int? argumentIndex = null, string? parameterName = null, string? declaredType = null)
Parameters
ruleNamestringTarget parser rule name.
rawArgumentsstringRaw call-site arguments without outer brackets.
reasonstringHuman-readable validation failure reason.
argumentIndexint?Zero-based offending argument index, when applicable.
parameterNamestringDeclared target parameter name, when applicable.
declaredTypestringRaw declared target type, when applicable.
Properties
ArgumentIndex
Gets the zero-based offending argument index, when applicable.
public int? ArgumentIndex { get; }
Property Value
- int?
DeclaredType
Gets the raw declared target type, when applicable.
public string? DeclaredType { get; }
Property Value
ParameterName
Gets the declared target parameter name, when applicable.
public string? ParameterName { get; }
Property Value
RawArguments
Gets the raw call-site arguments without outer brackets.
public string? RawArguments { get; }
Property Value
RuleName
Gets the target parser rule name.
public string RuleName { get; }