YamlException
OfficeIMO.Yaml
Raised when YAML input is malformed or cannot be decoded. YamlException.Code is stable across releases and identifies the rule that failed; the message is for people and may change.
Inheritance
- Exception
- YamlException
Derived Types
Methods
public OfficeDiagnostic ToDiagnostic() #Returns the failure as an error OfficeDiagnostic, the form YamlDocument.Diagnostics uses, so a caller can report a file that does not load next to the findings of files that do.
Returns
OfficeDiagnosticInherited Methods
public virtual void GetObjectData(SerializationInfo info, StreamingContext context) #Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
public string Code { get; } #Gets the stable error code, one of the YamlErrorCodes values.
public YamlPosition Position { get; } #Gets where the problem was detected in the decoded text.
public int Line { get; } #Gets the one-based line where the problem was detected.
public int Column { get; } #Gets the one-based column where the problem was detected.
public override string Message { get; } #Gets the message, followed by the offending source line with a caret under the column when the source text was available (input given as a string, memory or file loaded by YamlDocument).
Inherited Properties
public MethodBase? TargetSite { get; } #public virtual IDictionary Data { get; } #public Exception? InnerException { get; } #public virtual string? HelpLink { get; set; } #public virtual string? Source { get; set; } #public int HResult { get; set; } #public virtual string? StackTrace { get; } #