38 references to ThrowJsonException
System.Text.Json (38)
System\Text\Json\Document\JsonDocument.cs (1)
1106ThrowHelper.ThrowJsonException();
System\Text\Json\Nodes\JsonValueOfJsonPrimitive.cs (1)
30ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (5)
188ThrowHelper.ThrowJsonException(); 227ThrowHelper.ThrowJsonException(); 243ThrowHelper.ThrowJsonException(); 249ThrowHelper.ThrowJsonException(); 265ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
63ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (2)
99ThrowHelper.ThrowJsonException(); 114ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
128ThrowHelper.ThrowJsonException(); 168ThrowHelper.ThrowJsonException(); 188ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (1)
40ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
85ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
69ThrowHelper.ThrowJsonException(SR.PolymorphicTypeClassifierReturnedNull);
System\Text\Json\ThrowHelper.Serialization.cs (22)
722ThrowJsonException(SR.Format(SR.MetadataInvalidTokenAfterValues, tokenType)); 728ThrowJsonException(SR.Format(SR.MetadataReferenceNotFound, id)); 734ThrowJsonException(SR.Format(SR.MetadataValueWasNotString, tokenType)); 740ThrowJsonException(SR.Format(SR.MetadataValueWasNotString, valueKind)); 754ThrowJsonException(SR.MetadataUnexpectedProperty); 766ThrowJsonException(SR.MetadataReferenceCannotContainOtherProperties); 773ThrowJsonException(SR.MetadataIdCannotBeCombinedWithRef); 780ThrowJsonException(SR.MetadataStandaloneValuesProperty); 786ThrowJsonException(SR.Format(SR.MetadataDuplicateIdFound, id)); 792ThrowJsonException(SR.Format(SR.DuplicateMetadataProperty, Encoding.UTF8.GetString(utf8PropertyName))); 798ThrowJsonException(SR.Format(SR.MetadataInvalidReferenceToValueType, propertyType)); 807ThrowJsonException(SR.Format(SR.MetadataPreservedArrayFailed, 818ThrowJsonException(SR.Format(SR.MetadataPreservedArrayFailed, 826ThrowJsonException(SR.Format(SR.MetadataCannotParsePreservedObjectToImmutable, propertyType)); 969ThrowJsonException(SR.Format(SR.UnionDoesNotAcceptNull, unionType)); 975ThrowJsonException(SR.Format(SR.UnionRuntimeTypeNotMatchedToCase, runtimeType, unionType)); 981ThrowJsonException(SR.Format(SR.UnionCannotCreateValue, unionType)); 987ThrowJsonException(SR.Format(SR.UnionCannotReadValue, unionType)); 993ThrowJsonException(SR.Format(SR.UnionTypeClassifierReturnedNull, unionType, tokenType)); 999ThrowJsonException(SR.Format(SR.UnionAmbiguousJsonValueType, valueType, unionType)); 1005ThrowJsonException(SR.Format(SR.UnionJsonTokenTypeNotSupported, tokenType, unionType)); 1104ThrowJsonException(SR.Format(SR.Polymorphism_UnrecognizedTypeDiscriminator, typeDiscriminator));