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);
1389
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAfterEscapeWithinString, currentByte);
1412
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterWithinString, currentByte);
1422
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
1445
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidHexCharacterWithinString, nextByte);
1510
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, nextByte);
1534
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedNextDigitEValueNotFound, nextByte);
1563
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, data[i]);
1583
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1592
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1629
ThrowHelper.
ThrowJsonReaderException
(ref this,
1677
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1685
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterDecimal, nextByte);
1699
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1713
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1723
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1785
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
1799
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1836
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1838
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1851
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
1866
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
1912
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, first);
1924
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueAfterComment, first);
1936
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1980
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1983
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2003
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
2040
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2082
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2207
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2255
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
2268
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
2304
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
2307
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2320
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
2336
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
2365
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash);
2371
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfValueNotFound, JsonConstants.Slash);
2476
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfLineSeparator);
2490
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfCommentNotFound);
2542
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAtStartOfComment, marker);
2548
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);
682
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, _buffer[_consumed - 1]);
729
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedSeparatorAfterPropertyNameNotFound, first);
775
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
797
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
848
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAfterEscapeWithinString, currentByte);
866
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidHexCharacterWithinString, nextByte);
883
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
902
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterWithinString, currentByte);
913
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
984
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAfterEscapeWithinString, currentByte);
1002
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidHexCharacterWithinString, nextByte);
1019
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
1043
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterWithinString, currentByte);
1054
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.EndOfStringNotFound);
1165
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, nextByte);
1191
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedNextDigitEValueNotFound, nextByte);
1224
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, data[i]);
1256
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1263
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1278
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1332
ThrowHelper.
ThrowJsonReaderException
(ref this,
1425
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1432
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1445
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterDecimal, nextByte);
1459
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1467
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1487
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1495
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundEndOfData);
1510
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.RequiredDigitNotFoundAfterSign, nextByte);
1576
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
1590
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1598
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1636
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1638
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1651
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
1666
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
1712
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, first);
1724
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueAfterComment, first);
1736
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1744
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
1789
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
1792
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1812
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
1849
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
1893
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, first);
2018
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2070
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedEndAfterSingleJson, marker);
2083
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
2091
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyOrValueNotFound);
2128
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeObjectEnd);
2131
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.ExpectedStartOfPropertyNotFound, marker);
2144
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.TrailingCommaNotAllowedBeforeArrayEnd);
2159
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.FoundInvalidCharacter, marker);
2234
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2241
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2254
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.InvalidCharacterAtStartOfComment, marker);
2271
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2285
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2488
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfLineSeparator);
2570
ThrowHelper.
ThrowJsonReaderException
(ref this, ExceptionResource.UnexpectedEndOfDataWhileReadingComment);
2577
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
(