Table of Contents

Class ParserRuleCallBindingException

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

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

ruleName string

Target parser rule name.

rawArguments string

Raw call-site arguments without outer brackets.

reason string

Human-readable validation failure reason.

argumentIndex int?

Zero-based offending argument index, when applicable.

parameterName string

Declared target parameter name, when applicable.

declaredType string

Raw 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

string

ParameterName

Gets the declared target parameter name, when applicable.

public string? ParameterName { get; }

Property Value

string

RawArguments

Gets the raw call-site arguments without outer brackets.

public string? RawArguments { get; }

Property Value

string

RuleName

Gets the target parser rule name.

public string RuleName { get; }

Property Value

string