134 references to ThrowJsonReaderException
System.Text.Json (134)
System\Text\Json\Document\JsonDocument.Parse.cs (3)
478
ThrowHelper.
ThrowJsonReaderException
(
504
ThrowHelper.
ThrowJsonReaderException
(
626
ThrowHelper.
ThrowJsonReaderException
(
System\Text\Json\Reader\Utf8JsonReader.cs (59)
286
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedJsonTokens);
742
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ObjectDepthTooLarge);
756
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.MismatchedObjectArray, JsonConstants.CloseBrace);
762
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
776
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ArrayDepthTooLarge);
790
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.MismatchedObjectArray, JsonConstants.CloseBracket);
796
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
865
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
925
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ZeroDepthAtEnd);
935
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidEndOfJsonNonPrimitive);
953
ThrowHelper.
ThrowJsonReaderException
(ref this, resource);
1132
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidEndOfJsonNonPrimitive);
1159
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfValueNotFound, marker);
1236
ThrowHelper.
ThrowJsonReaderException
(ref this, resource, bytes: span);
1257
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, _buffer[_consumed - 1]);
1304
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedSeparatorAfterPropertyNameNotFound, first);
1349
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
1390
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAfterEscapeWithinString, currentByte);
1413
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterWithinString, currentByte);
1423
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
1446
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidHexCharacterWithinString, nextByte);
1511
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, nextByte);
1535
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedNextDigitEValueNotFound, nextByte);
1564
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, data[i]);
1584
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1593
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1630
ThrowHelper.
ThrowJsonReaderException
(ref this,
1678
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1686
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterDecimal, nextByte);
1700
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1714
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1724
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1786
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
1800
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1837
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1839
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1852
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
1867
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
1913
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, first);
1925
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueAfterComment, first);
1937
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1981
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1984
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2004
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
2041
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2083
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2208
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2256
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
2269
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
2305
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
2308
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2321
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
2337
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
2366
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash);
2372
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash);
2477
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfLineSeparator);
2491
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfCommentNotFound);
2543
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAtStartOfComment, marker);
2549
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (69)
172
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
233
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ZeroDepthAtEnd);
243
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidEndOfJsonNonPrimitive);
284
ThrowHelper.
ThrowJsonReaderException
(ref this, resource);
290
ThrowHelper.
ThrowJsonReaderException
(ref this, resource);
465
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidEndOfJsonNonPrimitive);
471
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidEndOfJsonNonPrimitive);
502
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfValueNotFound, marker);
695
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, _buffer[_consumed - 1]);
742
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedSeparatorAfterPropertyNameNotFound, first);
788
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
810
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
862
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAfterEscapeWithinString, currentByte);
880
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidHexCharacterWithinString, nextByte);
897
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
916
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterWithinString, currentByte);
927
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
999
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAfterEscapeWithinString, currentByte);
1017
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidHexCharacterWithinString, nextByte);
1034
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
1058
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterWithinString, currentByte);
1069
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
1180
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, nextByte);
1206
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedNextDigitEValueNotFound, nextByte);
1239
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, data[i]);
1271
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1278
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1293
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1347
ThrowHelper.
ThrowJsonReaderException
(ref this,
1440
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1447
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1460
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterDecimal, nextByte);
1474
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1482
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1502
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1510
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1525
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1591
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
1605
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1613
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1651
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1653
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1666
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
1681
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
1727
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, first);
1739
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueAfterComment, first);
1751
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1759
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1804
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1807
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1827
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
1864
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1908
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2033
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2085
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
2098
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
2106
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
2143
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
2146
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2159
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
2174
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
2249
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2256
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2269
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAtStartOfComment, marker);
2286
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2300
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2503
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfLineSeparator);
2585
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2592
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (3)
345
ThrowHelper.
ThrowJsonReaderException
(ref reader, ExceptionResource.ExpectedOneCompleteToken);
367
ThrowHelper.
ThrowJsonReaderException
(ref reader, ExceptionResource.NotEnoughData);
460
ThrowHelper.
ThrowJsonReaderException
(