15 references to CreateSerializationException
System.Private.DataContractSerialization (15)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
197
throw XmlObjectSerializer.
CreateSerializationException
(SR.JsonDateTimeOutOfRange, new ArgumentOutOfRangeException(nameof(value)));
System\Runtime\Serialization\PrimitiveDataContract.cs (1)
928
throw XmlObjectSerializer.
CreateSerializationException
(SR.Format(SR.XmlForObjectCannotHaveContent, localName, ns), xes);
System\Runtime\Serialization\XmlObjectSerializer.cs (13)
104
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex);
108
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex);
172
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorWriteStartObject, GetSerializeType(graph), ex), ex);
176
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorWriteStartObject, GetSerializeType(graph), ex), ex);
194
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex);
198
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorSerializing, GetSerializeType(graph), ex), ex);
214
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorWriteEndObject, null, ex), ex);
218
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorWriteEndObject, null, ex), ex);
360
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorDeserializing, GetDeserializeType(), ex), ex);
364
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorDeserializing, GetDeserializeType(), ex), ex);
380
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorIsStartObject, GetDeserializeType(), ex), ex);
384
throw XmlObjectSerializer.
CreateSerializationException
(GetTypeInfoError(SR.ErrorIsStartObject, GetDeserializeType(), ex), ex);
448
return XmlObjectSerializer.
CreateSerializationException
(errorMessage, null);