Class ParserAttributeAccessException
Represents a deterministic failure to read a limited generated parser return attribute.
public sealed class ParserAttributeAccessException : InvalidOperationException, ISerializable
- Inheritance
-
ParserAttributeAccessException
- Implements
- Inherited Members
- Extension Methods
Constructors
ParserAttributeAccessException(string, string, string)
Initializes an exception for a current-rule return that is unavailable.
public ParserAttributeAccessException(string attributeText, string returnName, string message)
Parameters
attributeTextstringCanonical attribute text.
returnNamestringRequested return name.
messagestringDeterministic failure message.
ParserAttributeAccessException(string, string?, string, string)
Initializes an exception for an assignment-labeled child return that is unavailable.
public ParserAttributeAccessException(string attributeText, string? labelName, string returnName, string message)
Parameters
attributeTextstringCanonical attribute text.
labelNamestringAssignment label name, or null for current-rule access.
returnNamestringRequested return name.
messagestringDeterministic failure message.
Properties
AttributeText
Gets the canonical attribute expression that failed.
public string AttributeText { get; }
Property Value
LabelName
Gets the assignment label name, or null for current-rule access.
public string? LabelName { get; }
Property Value
ReturnName
Gets the requested return name.
public string ReturnName { get; }