7 references to CreateSerializationException
System.Runtime.Serialization (7)
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
402
return XmlObjectSerializer.
CreateSerializationException
(TryAddLineInfo(reader, SR.GetString(SR.EncounteredWithNameNamespace, errorMessage, reader.NodeType, reader.LocalName, reader.NamespaceURI)));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (3)
190
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.
CreateSerializationException
(XmlObjectSerializer.TryAddLineInfo(reader, SR.GetString(SR.DcTypeNotFoundOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))));
192
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.
CreateSerializationException
(XmlObjectSerializer.TryAddLineInfo(reader, SR.GetString(SR.DcTypeNotResolvedOnDeserialize, attributes.XsiTypeNamespace, attributes.XsiTypeName, reader.NamespaceURI, reader.LocalName))));
292
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.
CreateSerializationException
(XmlObjectSerializer.TryAddLineInfo(xmlReader, SR.GetString(SR.UnexpectedElementExpectingElements, xmlReader.NodeType, xmlReader.LocalName, xmlReader.NamespaceURI, stringBuilder.ToString()))));
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (3)
182
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.
CreateSerializationException
(XmlObjectSerializer.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
184
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.
CreateSerializationException
(XmlObjectSerializer.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrAssemblyLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
186
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.
CreateSerializationException
(XmlObjectSerializer.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.SerializationNamespace, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));