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