Helper methods for throwing YamlException with location context.
public static class YamlThrowHelper
This type is public so that source-generated serializers can reuse centralized exception logic without duplicating message formatting.
kind:method, kind:property, kind:ctor. Press Esc to clear.ThrowAbstractTypeWithoutDiscriminator(YamlReader, Type)Throws an exception for abstract Type Without Discriminator.ThrowAliasMissingValue(YamlReader)Throws an exception for alias Missing Value.ThrowCallbackInvocationFailed(YamlReader, Type, String, Exception)Throws an exception when a lifecycle callback fails during deserialization.ThrowCallbackInvocationFailed(Type, String, Exception)Throws an exception when a lifecycle callback fails during serialization.ThrowDuplicateMappingKey(YamlReader, String)Throws an exception for duplicate Mapping Key.ThrowExpectedDiscriminatorScalar(YamlReader, String)Throws an exception for expected Discriminator Scalar.ThrowExpectedMapping(YamlReader)Throws an exception for expected Mapping.ThrowExpectedScalar(YamlReader)Throws an exception for expected Scalar.ThrowExpectedScalarKey(YamlReader)Throws an exception for expected Scalar Key.ThrowExpectedSequence(YamlReader)Throws an exception for expected Sequence.ThrowExpectedToken(YamlReader, YamlTokenType)Throws an exception for expected Token.ThrowInvalidBooleanScalar(YamlReader)Throws an exception for invalid Boolean Scalar.ThrowInvalidByteScalar(YamlReader)Throws an exception for invalid Byte Scalar.ThrowInvalidCharScalar(YamlReader, String)Throws an exception for invalid Char Scalar.ThrowInvalidDateOnlyScalar(YamlReader)Throws an exception for invalid System.DateOnly Scalar.ThrowInvalidDateTimeOffsetScalar(YamlReader)Throws an exception for invalid System.DateTimeOffset Scalar.ThrowInvalidDateTimeScalar(YamlReader)Throws an exception for invalid System.DateTime Scalar.ThrowInvalidDecimalScalar(YamlReader)Throws an exception for invalid Decimal Scalar.ThrowInvalidEnumScalar(YamlReader, String)Throws an exception for invalid Enum Scalar.ThrowInvalidFloatScalar(YamlReader)Throws an exception for invalid Float Scalar.ThrowInvalidGuidScalar(YamlReader)Throws an exception for invalid System.Guid Scalar.ThrowInvalidHalfScalar(YamlReader)Throws an exception for invalid System.Half Scalar.ThrowInvalidInt128Scalar(YamlReader)Throws an exception for invalid System.Int128 Scalar.ThrowInvalidInt16Scalar(YamlReader)Throws an exception for invalid Int16 Scalar.ThrowInvalidIntegerScalar(YamlReader)Throws an exception for invalid Integer Scalar.ThrowInvalidNIntScalar(YamlReader)Throws an exception for invalid N Int Scalar.ThrowInvalidNUIntScalar(YamlReader)Throws an exception for invalid NU Int Scalar.ThrowInvalidSByteScalar(YamlReader)Throws an exception for invalid S Byte Scalar.ThrowInvalidScalar(YamlReader, String)Throws an exception for invalid Scalar.ThrowInvalidTimeOnlyScalar(YamlReader)Throws an exception for invalid System.TimeOnly Scalar.ThrowInvalidTimeSpanScalar(YamlReader)Throws an exception for invalid System.TimeSpan Scalar.ThrowInvalidUInt128Scalar(YamlReader)Throws an exception for invalid System.UInt128 Scalar.ThrowInvalidUInt16Scalar(YamlReader)Throws an exception for invalid U Int16 Scalar.ThrowInvalidUInt32Scalar(YamlReader)Throws an exception for invalid U Int32 Scalar.ThrowInvalidUInt64Scalar(YamlReader)Throws an exception for invalid U Int64 Scalar.ThrowMissingRequiredConstructorParameter(YamlReader, Mark, Type, String)Throws an exception when a required constructor parameter is missing during deserialization.ThrowMissingRequiredMembers(YamlReader, Mark, Type, IReadOnlyList<String>)Throws an exception when required members are missing from an object mapping.ThrowNotSupported(YamlReader, String)Throws an exception for not Supported.ThrowUnexpectedToken(YamlReader)Throws an exception for unexpected Token.ThrowUnknownTypeDiscriminator(YamlReader, String?, Type)Throws an exception for unknown Type Discriminator.