Files
RobustToolbox/Robust.Shared/Serialization/Markdown/Validation/FieldNotFoundErrorNode.cs
T
TayrtahnandGitHub 8db3da4852 Add Type tracking to FieldNotFoundErrorNode (#5032)
* Add Type tracking to FieldNotFoundErrorNode

* Suggested changes, plus xmldoc and primary constructor conversion.
2024-04-08 19:27:02 +02:00

13 lines
411 B
C#

using System;
using Robust.Shared.Serialization.Markdown.Value;
namespace Robust.Shared.Serialization.Markdown.Validation;
public sealed class FieldNotFoundErrorNode(ValueDataNode key, Type type) : ErrorNode(key, $"Field \"{key.Value}\" not found in \"{type}\".", false)
{
/// <summary>
/// The Type in which the field was not found.
/// </summary>
public Type FieldType { get; } = type;
}