Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

YamlErrorCodes

OfficeIMO.Yaml

Namespace
OfficeIMO.Yaml
Assembly
OfficeIMO.Yaml
Source revision
0eef6a5756b9 with working tree changes
Modifiers
static

Stable codes carried by YamlException.Code. Codes are never reused for a different rule.

Inheritance

  • object
  • YamlErrorCodes

Fields

public const string InvalidCharacter #

A character that cannot start or continue any YAML token, including control characters.

Value: Yaml.Syntax.InvalidCharacter
public const string UnexpectedToken #

A token that the grammar does not allow at this point.

Value: Yaml.Syntax.UnexpectedToken
public const string InvalidIndentation #

Indentation that does not match the enclosing block structure, including tabs used as indentation.

Value: Yaml.Syntax.InvalidIndentation
public const string InvalidKey #

An implicit key that spans lines, exceeds 1024 characters, or is missing its : indicator.

Value: Yaml.Syntax.InvalidKey
public const string InvalidValue #

A : value indicator where a mapping value cannot start.

Value: Yaml.Syntax.InvalidValue
public const string UnterminatedScalar #

A quoted scalar without its closing quote.

Value: Yaml.Syntax.UnterminatedScalar
public const string InvalidEscape #

An unknown or malformed escape sequence in a double-quoted scalar.

Value: Yaml.Syntax.InvalidEscape
public const string InvalidBlockScalar #

A malformed block scalar header or block scalar indentation.

Value: Yaml.Syntax.InvalidBlockScalar
public const string InvalidDirective #

A malformed, duplicated or misplaced %YAML or %TAG directive, or an unsupported major version.

Value: Yaml.Syntax.InvalidDirective
public const string InvalidTag #

A malformed tag, or a tag handle no %TAG directive declares.

Value: Yaml.Syntax.InvalidTag
public const string InvalidAnchor #

A malformed anchor or alias name, or properties attached to an alias.

Value: Yaml.Syntax.InvalidAnchor
public const string InvalidDocument #

A document marker, directive or content where the stream structure does not allow it.

Value: Yaml.Syntax.InvalidDocument
public const string InvalidEncoding #

Bytes that are not valid in the detected Unicode encoding.

Value: Yaml.Encoding.Invalid
public const string UndefinedAlias #

An alias (*name) that no preceding anchor in the same document defines.

Value: Yaml.Load.UndefinedAlias
public 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.

Value: Yaml.Load.DuplicateKey
public const string RecursiveAlias #

An alias inside the collection its anchor names (&a [*a]), which would make the document infinite.

Value: Yaml.Load.RecursiveAlias
public const string LimitExceeded #

A limit from YamlReaderOptions or YamlLoadOptions was exceeded; see YamlLimitExceededException.

Value: Yaml.Limit.Exceeded
public 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.

Value: Yaml.Serialization.TypeMismatch
public const string MissingRequiredMember #

A mapping read by YamlSerializer lacks a key for a required member or constructor parameter.

Value: Yaml.Serialization.MissingRequiredMember
public const string UnknownDiscriminator #

A polymorphic value has no discriminator its type accepts, or one that no derived type registers.

Value: Yaml.Serialization.UnknownDiscriminator
public const string ReferenceCycle #

YamlSerializer reached an object that contains itself while YamlSerializerOptions.ReferenceHandling is YamlReferenceHandling.None.

Value: Yaml.Serialization.ReferenceCycle