214 references to ExceptionResource
System.Text.Json (214)
System\Text\Json\Document\JsonDocument.Parse.cs (3)
460
ExceptionResource
.ExpectedJsonTokens);
486
ExceptionResource
.ExpectedJsonTokens);
608
ExceptionResource
.ExpectedStartOfValueNotFound,
System\Text\Json\Reader\Utf8JsonReader.cs (70)
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);
947
private bool HasMoreData(
ExceptionResource
resource)
1098
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidEndOfJsonNonPrimitive);
1125
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfValueNotFound, marker);
1188
ExceptionResource
resource;
1192
resource =
ExceptionResource
.ExpectedTrue;
1195
resource =
ExceptionResource
.ExpectedFalse;
1199
resource =
ExceptionResource
.ExpectedNull;
1223
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndOfDigitNotFound, _buffer[_consumed - 1]);
1247
if (!HasMoreData(
ExceptionResource
.ExpectedValueAfterPropertyNameNotFound))
1260
if (!HasMoreData(
ExceptionResource
.ExpectedValueAfterPropertyNameNotFound))
1270
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedSeparatorAfterPropertyNameNotFound, first);
1315
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
1356
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterAfterEscapeWithinString, currentByte);
1379
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterWithinString, currentByte);
1389
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
1412
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidHexCharacterWithinString, nextByte);
1477
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndOfDigitNotFound, nextByte);
1501
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedNextDigitEValueNotFound, nextByte);
1530
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndOfDigitNotFound, data[i]);
1550
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1559
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundAfterSign, nextByte);
1597
JsonHelpers.IsInRangeInclusive(nextByte, '0', '9') ?
ExceptionResource
.InvalidLeadingZeroInNumber :
ExceptionResource
.ExpectedEndOfDigitNotFound,
1644
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1652
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundAfterDecimal, nextByte);
1666
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1680
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1690
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundAfterSign, nextByte);
1752
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndAfterSingleJson, marker);
1766
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
1777
if (!HasMoreData(
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
1803
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeObjectEnd);
1805
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
1818
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeArrayEnd);
1833
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.FoundInvalidCharacter, marker);
1879
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndAfterSingleJson, first);
1891
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueAfterComment, first);
1903
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
1914
if (!HasMoreData(
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
1947
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeObjectEnd);
1950
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
1970
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeArrayEnd);
2007
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
2049
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
2118
private bool SkipAllComments(scoped ref byte marker,
ExceptionResource
resource)
2174
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, marker);
2222
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndAfterSingleJson, marker);
2235
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
2246
if (!HasMoreData(
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
2253
if (!SkipAllComments(ref marker,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
2271
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeObjectEnd);
2274
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, marker);
2287
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeArrayEnd);
2303
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.FoundInvalidCharacter, marker);
2332
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfValueNotFound, JsonConstants.Slash);
2338
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfValueNotFound, JsonConstants.Slash);
2443
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfLineSeparator);
2457
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfCommentNotFound);
2509
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterAtStartOfComment, marker);
2515
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment);
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (80)
172
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
233
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ZeroDepthAtEnd);
243
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidEndOfJsonNonPrimitive);
278
private bool HasMoreDataMultiSegment(
ExceptionResource
resource)
465
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidEndOfJsonNonPrimitive);
471
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidEndOfJsonNonPrimitive);
502
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfValueNotFound, marker);
654
ExceptionResource
resource;
658
resource =
ExceptionResource
.ExpectedTrue;
661
resource =
ExceptionResource
.ExpectedFalse;
665
resource =
ExceptionResource
.ExpectedNull;
688
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndOfDigitNotFound, _buffer[_consumed - 1]);
712
if (!HasMoreDataMultiSegment(
ExceptionResource
.ExpectedValueAfterPropertyNameNotFound))
725
if (!HasMoreDataMultiSegment(
ExceptionResource
.ExpectedValueAfterPropertyNameNotFound))
735
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedSeparatorAfterPropertyNameNotFound, first);
781
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
803
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
855
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterAfterEscapeWithinString, currentByte);
873
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidHexCharacterWithinString, nextByte);
890
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
909
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterWithinString, currentByte);
920
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
992
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterAfterEscapeWithinString, currentByte);
1010
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidHexCharacterWithinString, nextByte);
1027
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
1051
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterWithinString, currentByte);
1062
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.EndOfStringNotFound);
1173
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndOfDigitNotFound, nextByte);
1199
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedNextDigitEValueNotFound, nextByte);
1232
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndOfDigitNotFound, data[i]);
1264
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1271
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1286
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundAfterSign, nextByte);
1341
JsonHelpers.IsInRangeInclusive(nextByte, '0', '9') ?
ExceptionResource
.InvalidLeadingZeroInNumber :
ExceptionResource
.ExpectedEndOfDigitNotFound,
1433
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1440
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1453
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundAfterDecimal, nextByte);
1467
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1475
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1495
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1503
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundEndOfData);
1518
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.RequiredDigitNotFoundAfterSign, nextByte);
1584
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndAfterSingleJson, marker);
1598
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
1606
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
1618
if (!HasMoreDataMultiSegment(
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
1644
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeObjectEnd);
1646
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
1659
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeArrayEnd);
1674
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.FoundInvalidCharacter, marker);
1720
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndAfterSingleJson, first);
1732
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueAfterComment, first);
1744
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
1752
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
1764
if (!HasMoreDataMultiSegment(
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
1797
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeObjectEnd);
1800
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
1820
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeArrayEnd);
1857
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
1901
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, first);
1970
private bool SkipAllCommentsMultiSegment(scoped ref byte marker,
ExceptionResource
resource)
2026
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, marker);
2078
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedEndAfterSingleJson, marker);
2091
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
2099
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound);
2111
if (!HasMoreDataMultiSegment(
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
2118
if (!SkipAllCommentsMultiSegment(ref marker,
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound))
2136
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeObjectEnd);
2139
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.ExpectedStartOfPropertyNotFound, marker);
2152
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.TrailingCommaNotAllowedBeforeArrayEnd);
2167
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.FoundInvalidCharacter, marker);
2242
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment);
2249
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment);
2262
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.InvalidCharacterAtStartOfComment, marker);
2279
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment);
2293
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment);
2496
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfLineSeparator);
2578
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment);
2585
ThrowHelper.ThrowJsonReaderException(ref this,
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (3)
357
ThrowHelper.ThrowJsonReaderException(ref reader,
ExceptionResource
.ExpectedOneCompleteToken);
372
ThrowHelper.ThrowJsonReaderException(ref reader,
ExceptionResource
.NotEnoughData);
456
ExceptionResource
.ExpectedStartOfValueNotFound,
System\Text\Json\ThrowHelper.cs (48)
349
public static void ThrowJsonReaderException(ref Utf8JsonReader json,
ExceptionResource
resource, byte nextByte = default, ReadOnlySpan<byte> bytes = default)
355
public static JsonException GetJsonReaderException(ref Utf8JsonReader json,
ExceptionResource
resource, byte nextByte, ReadOnlySpan<byte> bytes)
376
private static string GetResourceString(ref Utf8JsonReader json,
ExceptionResource
resource, byte nextByte, string characters)
383
case
ExceptionResource
.ArrayDepthTooLarge:
386
case
ExceptionResource
.MismatchedObjectArray:
389
case
ExceptionResource
.TrailingCommaNotAllowedBeforeArrayEnd:
392
case
ExceptionResource
.TrailingCommaNotAllowedBeforeObjectEnd:
395
case
ExceptionResource
.EndOfStringNotFound:
398
case
ExceptionResource
.RequiredDigitNotFoundAfterSign:
401
case
ExceptionResource
.RequiredDigitNotFoundAfterDecimal:
404
case
ExceptionResource
.RequiredDigitNotFoundEndOfData:
407
case
ExceptionResource
.ExpectedEndAfterSingleJson:
410
case
ExceptionResource
.ExpectedEndOfDigitNotFound:
413
case
ExceptionResource
.ExpectedNextDigitEValueNotFound:
416
case
ExceptionResource
.ExpectedSeparatorAfterPropertyNameNotFound:
419
case
ExceptionResource
.ExpectedStartOfPropertyNotFound:
422
case
ExceptionResource
.ExpectedStartOfPropertyOrValueNotFound:
425
case
ExceptionResource
.ExpectedStartOfPropertyOrValueAfterComment:
428
case
ExceptionResource
.ExpectedStartOfValueNotFound:
431
case
ExceptionResource
.ExpectedValueAfterPropertyNameNotFound:
434
case
ExceptionResource
.FoundInvalidCharacter:
437
case
ExceptionResource
.InvalidEndOfJsonNonPrimitive:
440
case
ExceptionResource
.ObjectDepthTooLarge:
443
case
ExceptionResource
.ExpectedFalse:
446
case
ExceptionResource
.ExpectedNull:
449
case
ExceptionResource
.ExpectedTrue:
452
case
ExceptionResource
.InvalidCharacterWithinString:
455
case
ExceptionResource
.InvalidCharacterAfterEscapeWithinString:
458
case
ExceptionResource
.InvalidHexCharacterWithinString:
461
case
ExceptionResource
.EndOfCommentNotFound:
464
case
ExceptionResource
.ZeroDepthAtEnd:
467
case
ExceptionResource
.ExpectedJsonTokens:
470
case
ExceptionResource
.NotEnoughData:
473
case
ExceptionResource
.ExpectedOneCompleteToken:
476
case
ExceptionResource
.InvalidCharacterAtStartOfComment:
479
case
ExceptionResource
.UnexpectedEndOfDataWhileReadingComment:
482
case
ExceptionResource
.UnexpectedEndOfLineSeparator:
485
case
ExceptionResource
.InvalidLeadingZeroInNumber:
497
public static void ThrowInvalidOperationException(
ExceptionResource
resource, int currentDepth, int maxDepth, byte token, JsonTokenType tokenType)
572
public static InvalidOperationException GetInvalidOperationException(
ExceptionResource
resource, int currentDepth, int maxDepth, byte token, JsonTokenType tokenType)
588
private static string GetResourceString(
ExceptionResource
resource, int currentDepth, int maxDepth, byte token, JsonTokenType tokenType)
593
case
ExceptionResource
.MismatchedObjectArray:
599
case
ExceptionResource
.DepthTooLarge:
602
case
ExceptionResource
.CannotStartObjectArrayWithoutProperty:
605
case
ExceptionResource
.CannotStartObjectArrayAfterPrimitiveOrClose:
608
case
ExceptionResource
.CannotWriteValueWithinObject:
611
case
ExceptionResource
.CannotWritePropertyWithinArray:
616
case
ExceptionResource
.CannotWriteValueAfterPrimitiveOrClose:
System\Text\Json\Writer\Utf8JsonWriter.cs (6)
483
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.DepthTooLarge, _currentDepth, _options.MaxDepth, token: default, tokenType: default);
542
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.CannotStartObjectArrayWithoutProperty, currentDepth: default, maxDepth: _options.MaxDepth, token: default, _tokenType);
553
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.CannotStartObjectArrayAfterPrimitiveOrClose, currentDepth: default, maxDepth: _options.MaxDepth, token: default, _tokenType);
963
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.MismatchedObjectArray, currentDepth: default, maxDepth: _options.MaxDepth, token, _tokenType);
970
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.MismatchedObjectArray, currentDepth: default, maxDepth: _options.MaxDepth, token, _tokenType);
979
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.MismatchedObjectArray, currentDepth: default, maxDepth: _options.MaxDepth, token, _tokenType);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (2)
42
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.CannotWritePropertyWithinArray, currentDepth: default, maxDepth: _options.MaxDepth, token: default, _tokenType);
55
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.CannotWritePropertyWithinArray, currentDepth: default, maxDepth: _options.MaxDepth, token: default, _tokenType);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (2)
22
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.CannotWriteValueWithinObject, currentDepth: default, maxDepth: _options.MaxDepth, token: default, _tokenType);
32
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.CannotWriteValueAfterPrimitiveOrClose, currentDepth: default, maxDepth: _options.MaxDepth, token: default, _tokenType);