29 references to XmlInternalErrorDetails
System.Private.Xml (29)
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)
89
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Failed to generate XmlSerializer assembly, but did not throw"));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
1210
_ => throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")),
1220
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
1178
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Invalid DateTime"));
1432
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 (4)
779
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "DeferredWorkItems.Count have changed"));
781
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "DeferredWorkItems.Top have changed"));
2202
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Bad accessor type " + accessor.GetType().FullName));
2238
throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, $"The XML attribute/element '{accessor.Namespace}{accessor.Name}' does not have an existing accessor to remove."));
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)
2459
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
4872
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
369
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
3257
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationWriter.cs (4)
658
if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "missing stack object of type " + o.GetType().FullName));
1284
if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "not array like type " + type.FullName));
2456
if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, name + " has invalid default type " + defaultValue.GetType().Name));
2759
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)
201
if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, name + " has invalid default type " + defaultValue.GetType().Name));
519
if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.
XmlInternalErrorDetails
, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));