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
LimitValue
The value of that limit; 0 for YamlDocumentLimit.Alias.
public long LimitValue { get; }
Property Value
TargetSite
public MethodBase TargetSite { get; }
Property Value
Message
public string Message { get; }
Property Value
Data
public IDictionary Data { get; }
Property Value
InnerException
public Exception InnerException { get; }
Property Value
HelpLink
public string HelpLink { get; set; }
Property Value
Source
public string Source { get; set; }
Property Value
HResult
public int HResult { get; set; }
Property Value
StackTrace
public string StackTrace { get; }
Property Value
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.