Zum Hauptinhalt springen

YamlDocumentLimitExceededException

Namespace: Meshmakers.Octo.Communication.Contracts.Serialization

Thrown by YamlToJsonConverter when a document exceeds one of the limits of YamlToJsonConverterOptions. The document is refused, not converted. The message names the limit and never quotes the document.

public sealed class YamlDocumentLimitExceededException : NotSupportedException, ISerializable

Inheritance Object → Exception → SystemException → NotSupportedException → YamlDocumentLimitExceededException
Implements ISerializable

Remarks:

Derives from NotSupportedException, which the converter already throws for documents without a JSON equivalent, so callers that handle that keep handling this one.

Fields​

ErrorCode​

A stable error code for answers and logs.

public static string ErrorCode;

Properties​

Limit​

The limit the document exceeded.

public YamlDocumentLimit Limit { get; }

Property Value​

YamlDocumentLimit

LimitValue​

The value of that limit; 0 for YamlDocumentLimit.Alias.

public long LimitValue { get; }

Property Value​

Int64

TargetSite​

public MethodBase TargetSite { get; }

Property Value​

MethodBase

Message​

public string Message { get; }

Property Value​

String

Data​

public IDictionary Data { get; }

Property Value​

IDictionary

InnerException​

public Exception InnerException { get; }

Property Value​

Exception

public string HelpLink { get; set; }

Property Value​

String

Source​

public string Source { get; set; }

Property Value​

String

HResult​

public int HResult { get; set; }

Property Value​

Int32

StackTrace​

public string StackTrace { get; }

Property Value​

String

Constructors​

YamlDocumentLimitExceededException(YamlDocumentLimit, Int64, String)​

Creates the exception.

public YamlDocumentLimitExceededException(YamlDocumentLimit limit, long limitValue, string message)

Parameters​

limit YamlDocumentLimit
The limit the document exceeded.

limitValue Int64
The value of that limit; 0 for YamlDocumentLimit.Alias.

message String
The message, naming the limit.