25 references to ThrowJsonException
System.Text.Json (25)
System\Text\Json\Document\JsonDocument.cs (1)
1128ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
63ThrowHelper.ThrowJsonException();
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (2)
93ThrowHelper.ThrowJsonException(); 106ThrowHelper.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)
77ThrowHelper.ThrowJsonException();
System\Text\Json\ThrowHelper.Serialization.cs (16)
698ThrowJsonException(SR.Format(SR.MetadataInvalidTokenAfterValues, tokenType)); 704ThrowJsonException(SR.Format(SR.MetadataReferenceNotFound, id)); 710ThrowJsonException(SR.Format(SR.MetadataValueWasNotString, tokenType)); 716ThrowJsonException(SR.Format(SR.MetadataValueWasNotString, valueKind)); 730ThrowJsonException(SR.Format(SR.MetadataUnexpectedProperty)); 742ThrowJsonException(SR.MetadataReferenceCannotContainOtherProperties); 749ThrowJsonException(SR.MetadataIdCannotBeCombinedWithRef); 756ThrowJsonException(SR.MetadataStandaloneValuesProperty); 772ThrowJsonException(SR.MetadataInvalidPropertyWithLeadingDollarSign); 778ThrowJsonException(SR.Format(SR.MetadataDuplicateIdFound, id)); 784ThrowJsonException(SR.Format(SR.DuplicateMetadataProperty, JsonHelpers.Utf8GetString(utf8PropertyName))); 790ThrowJsonException(SR.Format(SR.MetadataInvalidReferenceToValueType, propertyType)); 799ThrowJsonException(SR.Format(SR.MetadataPreservedArrayFailed, 810ThrowJsonException(SR.Format(SR.MetadataPreservedArrayFailed, 818ThrowJsonException(SR.Format(SR.MetadataCannotParsePreservedObjectToImmutable, propertyType)); 967ThrowJsonException(SR.Format(SR.Polymorphism_UnrecognizedTypeDiscriminator, typeDiscriminator));