14 references to GetInvalidOperationException
System.Text.Json (14)
System\Text\Json\ThrowHelper.cs (14)
100
return
GetInvalidOperationException
(SR.Format(SR.CallFlushToAvoidDataLoss, _buffered));
130
throw
GetInvalidOperationException
(SR.FailedToGetLargerSpan);
221
throw
GetInvalidOperationException
(message);
240
return
GetInvalidOperationException
(SR.Format(SR.ZeroDepthAtEnd, currentDepth));
244
return
GetInvalidOperationException
(SR.EmptyJsonIsInvalid);
312
throw
GetInvalidOperationException
(SR.CannotSkip);
319
throw
GetInvalidOperationException
(SR.Format(SR.CannotMixEncodings, GetEncodingName(previousEncoding), GetEncodingName(currentEncoding)));
337
return
GetInvalidOperationException
(SR.Format(SR.InvalidCast, tokenType, message));
342
return
GetInvalidOperationException
(SR.Format(SR.InvalidComparison, tokenType));
357
return
GetInvalidOperationException
(
365
return
GetInvalidOperationException
(
566
throw
GetInvalidOperationException
(SR.Format(SR.CannotReadInvalidUTF16, $"0x{charAsInt:X2}"));
572
throw
GetInvalidOperationException
(SR.CannotReadIncompleteUTF16);
596
InvalidOperationException ex =
GetInvalidOperationException
(message);