4 references to InvalidOperationExceptionTypeRef
System.Text.Json.SourceGeneration (4)
JsonSourceGenerator.Emitter.cs (4)
1531
writer.WriteLine($"""throw new {
InvalidOperationExceptionTypeRef
}("{exceptionMessage}");""");
1947
throw new {{
InvalidOperationExceptionTypeRef
}}(string.Format("{{ExceptionMessages.ClosedTypeInferenceRequiresCompileTimeOptIn}}", typeof({{typeSpec.TypeRef.FullyQualifiedName}})));
2227
throw new {{
InvalidOperationExceptionTypeRef
}}(string.Format("{{ExceptionMessages.IncompatibleConverterType}}", converter.GetType(), type));
2235
throw new {{
InvalidOperationExceptionTypeRef
}}(string.Format("{{ExceptionMessages.InvalidJsonConverterFactoryOutput}}", factory.GetType()));