14 references to GetInvalidOperationException
System.Text.Json (14)
System\Text\Json\ThrowHelper.cs (14)
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);
317
throw
GetInvalidOperationException
(SR.Format(SR.CannotMixEncodings, previousEncoding, currentEncoding));
322
return
GetInvalidOperationException
(SR.Format(SR.InvalidCast, tokenType, message));
327
return
GetInvalidOperationException
(SR.Format(SR.InvalidComparison, tokenType));
342
return
GetInvalidOperationException
(
350
return
GetInvalidOperationException
(
551
throw
GetInvalidOperationException
(SR.Format(SR.CannotReadInvalidUTF16, $"0x{charAsInt:X2}"));
557
throw
GetInvalidOperationException
(SR.CannotReadIncompleteUTF16);
581
InvalidOperationException ex =
GetInvalidOperationException
(message);