5 references to ExceptionMessages
System.Text.Json.SourceGeneration (5)
JsonSourceGenerator.Emitter.cs (5)
1615
string exceptionMessage = string.Format(
ExceptionMessages
.InvalidSerializablePropertyConfiguration, typeGenSpec.TypeRef.FullyQualifiedName);
1747
throw new {{JsonExceptionTypeRef}}(string.Format("{{
ExceptionMessages
.PropertyGetterDisallowNull}}", propertyName, {{FormatStringLiteral(typeGenSpec.TypeRef.Name)}}));
2032
throw new {{InvalidOperationExceptionTypeRef}}(string.Format("{{
ExceptionMessages
.ClosedTypeInferenceRequiresCompileTimeOptIn}}", typeof({{typeSpec.TypeRef.FullyQualifiedName}})));
2312
throw new {{InvalidOperationExceptionTypeRef}}(string.Format("{{
ExceptionMessages
.IncompatibleConverterType}}", converter.GetType(), type));
2320
throw new {{InvalidOperationExceptionTypeRef}}(string.Format("{{
ExceptionMessages
.InvalidJsonConverterFactoryOutput}}", factory.GetType()));