13 references to GetInvalidOperationException
System.Text.Json (13)
System\Text\Json\ThrowHelper.cs (13)
99
return
GetInvalidOperationException
(SR.Format(SR.CallFlushToAvoidDataLoss, _buffered));
129
throw
GetInvalidOperationException
(SR.FailedToGetLargerSpan);
220
throw
GetInvalidOperationException
(message);
239
return
GetInvalidOperationException
(SR.Format(SR.ZeroDepthAtEnd, currentDepth));
243
return
GetInvalidOperationException
(SR.EmptyJsonIsInvalid);
311
throw
GetInvalidOperationException
(SR.CannotSkip);
316
return
GetInvalidOperationException
(SR.Format(SR.InvalidCast, tokenType, message));
321
return
GetInvalidOperationException
(SR.Format(SR.InvalidComparison, tokenType));
336
return
GetInvalidOperationException
(
344
return
GetInvalidOperationException
(
545
throw
GetInvalidOperationException
(SR.Format(SR.CannotReadInvalidUTF16, $"0x{charAsInt:X2}"));
551
throw
GetInvalidOperationException
(SR.CannotReadIncompleteUTF16);
575
InvalidOperationException ex =
GetInvalidOperationException
(message);