18 references to ThrowFormatException
System.Text.Json (18)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (7)
290
ThrowHelper.
ThrowFormatException
(DataType.Base64String);
735
ThrowHelper.
ThrowFormatException
(DataType.DateTime);
745
ThrowHelper.
ThrowFormatException
(DataType.DateTime);
768
ThrowHelper.
ThrowFormatException
(DataType.DateTimeOffset);
778
ThrowHelper.
ThrowFormatException
(DataType.DateTimeOffset);
801
ThrowHelper.
ThrowFormatException
(DataType.Guid);
811
ThrowHelper.
ThrowFormatException
(DataType.Guid);
System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs (1)
30
ThrowHelper.
ThrowFormatException
(DataType.Boolean);
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (2)
35
ThrowHelper.
ThrowFormatException
(DataType.DateOnly);
52
ThrowHelper.
ThrowFormatException
(DataType.DateOnly);
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (3)
39
ThrowHelper.
ThrowFormatException
(DataType.TimeOnly);
60
ThrowHelper.
ThrowFormatException
(DataType.TimeOnly);
72
ThrowHelper.
ThrowFormatException
(DataType.TimeOnly);
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (3)
39
ThrowHelper.
ThrowFormatException
(DataType.TimeSpan);
59
ThrowHelper.
ThrowFormatException
(DataType.TimeSpan);
71
ThrowHelper.
ThrowFormatException
(DataType.TimeSpan);
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (2)
42
ThrowHelper.
ThrowFormatException
(DataType.Version);
55
ThrowHelper.
ThrowFormatException
(DataType.Version);