28 references to XmlInternalErrorDetails
System.Private.Xml (28)
System\Xml\Serialization\CodeIdentifier.cs (2)
111
if (!IsValid(c)) throw new ArgumentException(SR.Format(SR.
XmlInternalErrorDetails
, "Invalid identifier character " + ((short)c).ToString(CultureInfo.InvariantCulture)), nameof(c));
162
throw new ArgumentException(SR.Format(SR.
XmlInternalErrorDetails
, "Unhandled category " + uc), nameof(c));
System\Xml\Serialization\Compilation.cs (1)
88
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Failed to generate XmlSerializer assembly, but did not throw"));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
1223
_ => throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")),
1233
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
1117
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Invalid DateTime"));
1372
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, $"Could not find member named {memberName} of type {declaringType}"));
System\Xml\Serialization\SoapReflectionImporter.cs (2)
340
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "DeferredWorkItems.Count have changed"));
342
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "DeferredWorkItems.Top have changed"));
System\Xml\Serialization\Xmlcustomformatter.cs (1)
186
if (ids.Length != vals.Length) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Invalid enum"));
System\Xml\Serialization\XmlReflectionImporter.cs (3)
762
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "DeferredWorkItems.Count have changed"));
764
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "DeferredWorkItems.Top have changed"));
2174
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Bad accessor type " + accessor.GetType().FullName));
System\Xml\Serialization\XmlSchemaExporter.cs (4)
562
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, $"Unsupported anonymous mapping type: {mapping}"));
619
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Type " + mapping.TypeName + " from namespace '" + ns + "' is an invalid array mapping"));
876
if (value.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, SR.Format(SR.XmlInvalidDefaultValue, value, value.GetType().FullName)));
916
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Mapping for " + pm.TypeDesc.Name + " missing type property"));
System\Xml\Serialization\XmlSchemas.cs (1)
262
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "XmlSchemas.Find: Invalid object type " + type.FullName));
System\Xml\Serialization\XmlSerializationReader.cs (2)
2448
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
4861
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
373
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
3289
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationWriter.cs (4)
656
if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "missing stack object of type " + o.GetType().FullName));
1282
if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "not array like type " + type.FullName));
2454
if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, name + " has invalid default type " + defaultValue.GetType().Name));
2757
if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
208
if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, name + " has invalid default type " + defaultValue.GetType().Name));
532
if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));