21 references to ThrowJsonException
System.Text.Json (21)
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)
658ThrowJsonException(SR.Format(SR.MetadataInvalidTokenAfterValues, tokenType)); 664ThrowJsonException(SR.Format(SR.MetadataReferenceNotFound, id)); 670ThrowJsonException(SR.Format(SR.MetadataValueWasNotString, tokenType)); 676ThrowJsonException(SR.Format(SR.MetadataValueWasNotString, valueKind)); 690ThrowJsonException(SR.Format(SR.MetadataUnexpectedProperty)); 702ThrowJsonException(SR.MetadataReferenceCannotContainOtherProperties); 709ThrowJsonException(SR.MetadataIdCannotBeCombinedWithRef); 716ThrowJsonException(SR.MetadataStandaloneValuesProperty); 732ThrowJsonException(SR.MetadataInvalidPropertyWithLeadingDollarSign); 738ThrowJsonException(SR.Format(SR.MetadataDuplicateIdFound, id)); 744ThrowJsonException(SR.Format(SR.DuplicateMetadataProperty, JsonHelpers.Utf8GetString(utf8PropertyName))); 750ThrowJsonException(SR.Format(SR.MetadataInvalidReferenceToValueType, propertyType)); 759ThrowJsonException(SR.Format(SR.MetadataPreservedArrayFailed, 770ThrowJsonException(SR.Format(SR.MetadataPreservedArrayFailed, 778ThrowJsonException(SR.Format(SR.MetadataCannotParsePreservedObjectToImmutable, propertyType)); 927ThrowJsonException(SR.Format(SR.Polymorphism_UnrecognizedTypeDiscriminator, typeDiscriminator));