ConfigurationDiagnosticCode Enum
Definition
- Namespace
- Bodu.Text.Configuration
- Assembly
- Bodu.Text.Configuration.dll
- Package
- Bodu.Text.Configuration 1.0.0
Identifies a specific class of ConfigurationDiagnostic. Codes are stable so that consumers may suppress, filter, or test for particular conditions without inspecting the message text.
public enum ConfigurationDiagnosticCode
- Extension Methods
Fields
None = 0No specific code is associated with the diagnostic.
MissingEquals = 1A property line did not contain a key/value separator (
=).EmptyKey = 2A property declared an empty key.
DuplicateKey = 3A duplicate key was encountered when Disallowed was active.
UnterminatedSectionHeader = 4A section header opened with
[but did not close with].EmptySectionHeader = 5A section header contained no characters between
[and].UnbalancedBrace = 6A glob expression contained an opening brace with no matching close.
UnbalancedBracket = 7A glob expression contained an opening bracket with no matching close.
InvalidKeyCharacter = 8A property key included an illegal character.
InvalidEscape = 9An escape sequence in a value was malformed.
LineTooLong = 10A configuration line was longer than the configured maximum.
KeyTooLong = 11A configuration property key was longer than the configured maximum.
DuplicateSection = 12A duplicate section header was encountered when Disallowed was active.
NumericRangeTooLarge = 13A glob expression's numeric range (
{n1..n2}) would expand to more alternatives than the parser permits.TrailingContentAfterSectionHeader = 14A configuration section header contained non-whitespace content after the closing
]when the configured section-header mode did not permit trailing content.BraceNestingTooDeep = 15A glob expression contained brace alternations nested deeper than the parser permits, guarding against pathological patterns whose recursion or expansion would exhaust resources.
PatternTooLong = 16A glob expression exceeded the maximum length the parser is willing to compile, guarding against pathological inputs that would allocate a multi-megabyte regex source.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |