YamlErrorCodes
OfficeIMO.Yaml
Stable codes carried by YamlException.Code. Codes are never reused for a different rule.
Inheritance
- object
- YamlErrorCodes
Inherited Methods
Fields
public const string InvalidCharacter #A character that cannot start or continue any YAML token, including control characters.
Yaml.Syntax.InvalidCharacterpublic const string UnexpectedToken #A token that the grammar does not allow at this point.
Yaml.Syntax.UnexpectedTokenpublic const string InvalidIndentation #Indentation that does not match the enclosing block structure, including tabs used as indentation.
Yaml.Syntax.InvalidIndentationpublic const string InvalidKey #An implicit key that spans lines, exceeds 1024 characters, or is missing its : indicator.
Yaml.Syntax.InvalidKeypublic const string InvalidValue #A : value indicator where a mapping value cannot start.
Yaml.Syntax.InvalidValuepublic const string UnterminatedScalar #A quoted scalar without its closing quote.
Yaml.Syntax.UnterminatedScalarpublic const string InvalidEscape #An unknown or malformed escape sequence in a double-quoted scalar.
Yaml.Syntax.InvalidEscapepublic const string InvalidBlockScalar #A malformed block scalar header or block scalar indentation.
Yaml.Syntax.InvalidBlockScalarpublic const string InvalidDirective #A malformed, duplicated or misplaced %YAML or %TAG directive, or an unsupported major version.
Yaml.Syntax.InvalidDirectivepublic const string InvalidTag #A malformed tag, or a tag handle no %TAG directive declares.
Yaml.Syntax.InvalidTagpublic const string InvalidAnchor #A malformed anchor or alias name, or properties attached to an alias.
Yaml.Syntax.InvalidAnchorpublic const string InvalidDocument #A document marker, directive or content where the stream structure does not allow it.
Yaml.Syntax.InvalidDocumentpublic const string InvalidEncoding #Bytes that are not valid in the detected Unicode encoding.
Yaml.Encoding.Invalidpublic const string UndefinedAlias #An alias (*name) that no preceding anchor in the same document defines.
Yaml.Load.UndefinedAliaspublic const string DuplicateKey #A mapping with two equal keys. YamlDocument throws it under YamlDuplicateKeyPolicy.Error, the default of strict loads, and reports it as a warning diagnostic under the other policies. YamlSerializer throws it only when YamlReaderOptions.Strict is set; otherwise the last key wins.
Yaml.Load.DuplicateKeypublic const string RecursiveAlias #An alias inside the collection its anchor names (&a [*a]), which would make the document infinite.
Yaml.Load.RecursiveAliaspublic const string LimitExceeded #A limit from YamlReaderOptions or YamlLoadOptions was exceeded; see YamlLimitExceededException.
Yaml.Limit.Exceededpublic const string TypeMismatch #YamlSerializer found a node that cannot become the requested .NET type: a mapping where a list is expected, text that is not a number, a null for a non-nullable value type, or a value out of range.
Yaml.Serialization.TypeMismatchpublic const string MissingRequiredMember #A mapping read by YamlSerializer lacks a key for a required member or constructor parameter.
Yaml.Serialization.MissingRequiredMemberpublic const string UnknownDiscriminator #A polymorphic value has no discriminator its type accepts, or one that no derived type registers.
Yaml.Serialization.UnknownDiscriminatorpublic const string ReferenceCycle #YamlSerializer reached an object that contains itself while YamlSerializerOptions.ReferenceHandling is YamlReferenceHandling.None.
Yaml.Serialization.ReferenceCycle