173 references to XmlExceptionHelper
dotnet-svcutil-lib (173)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
63
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTimeOffset", exception));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (7)
358
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "byte[]", exception));
362
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "byte[]", exception));
554
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
558
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
562
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
583
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Uri", exception));
587
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Uri", exception));
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
752
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(bytes, byteOffset, byteCount, exception));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (26)
142
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlDeclMissingVersion)));
145
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl)));
149
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlDeclMissingVersion)));
158
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl)));
162
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl)));
178
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl)));
184
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidStandalone)));
193
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl)));
199
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(valueSR)));
267
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
277
XmlExceptionHelper
.ThrowUnexpectedEndOfFile(this);
286
XmlExceptionHelper
.ThrowMultipleRootElements(this);
292
XmlExceptionHelper
.ThrowMaxDepthExceeded(this, _quotas.MaxDepth);
319
XmlExceptionHelper
.ThrowUnexpectedEndElement(this);
368
XmlExceptionHelper
.ThrowEmptyNamespace(this);
373
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xml", xmlNamespace)));
377
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace)));
710
XmlExceptionHelper
.ThrowUndefinedPrefix(this, PrefixHandle.GetString(prefix));
718
XmlExceptionHelper
.ThrowUndefinedPrefix(this, prefix.GetString());
766
XmlExceptionHelper
.ThrowDuplicateAttribute(this, attributeNode1.Prefix.GetString(), attributeNode2.Prefix.GetString(), attributeNode1.LocalName.GetString(), attributeNode1.Namespace.Uri.GetString());
777
XmlExceptionHelper
.ThrowDuplicateAttribute(this, xmlns, xmlns, attributeNode1.Namespace.Prefix.GetString(), xmlnsNamespace);
800
XmlExceptionHelper
.ThrowDuplicateXmlnsAttribute(this, attributeNodes[attribute1].Namespace.Prefix.GetString(), xmlnsNamespace);
802
XmlExceptionHelper
.ThrowDuplicateAttribute(this, attributeNodes[attribute1].Prefix.GetString(), attributeNodes[attribute2].Prefix.GetString(), attributeNodes[attribute1].LocalName.GetString(), attributeNodes[attribute1].Namespace.Uri.GetString());
1248
XmlExceptionHelper
.ThrowEndElementExpected(this, elementNode.LocalName.GetString(), elementNode.Namespace.Uri.GetString());
1296
XmlExceptionHelper
.ThrowMaxArrayLengthExceeded(this, _quotas.MaxArrayLength);
1492
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, _quotas.MaxStringContentLength);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (9)
101
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, Quotas.MaxStringContentLength);
691
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
911
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1101
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1104
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1106
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1109
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1113
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1117
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (32)
191
XmlExceptionHelper
.ThrowUnexpectedEndOfFile(_reader);
211
XmlExceptionHelper
.ThrowUnexpectedEndOfFile(_reader);
336
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
383
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
474
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTime", exception));
478
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTime", exception));
482
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTime", exception));
496
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "TimeSpan", exception));
500
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "TimeSpan", exception));
504
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "TimeSpan", exception));
720
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
732
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
746
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
759
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
773
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
789
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
792
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
816
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
820
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
828
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
851
XmlExceptionHelper
.ThrowInvalidCharRef(_reader);
1195
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
1205
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
1211
XmlExceptionHelper
.ThrowXmlDictionaryStringIDOutOfRange(_reader);
1212
XmlExceptionHelper
.ThrowXmlDictionaryStringIDUndefinedSession(_reader, sessionKey);
1218
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
1224
XmlExceptionHelper
.ThrowXmlDictionaryStringIDOutOfRange(_reader);
1225
XmlExceptionHelper
.ThrowXmlDictionaryStringIDUndefinedStatic(_reader, staticKey);
1326
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
1340
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
1357
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
1371
XmlExceptionHelper
.ThrowInvalidBinaryFormat(_reader);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (35)
78
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Boolean", exception));
82
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Boolean", exception));
107
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
111
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
115
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
135
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
139
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
143
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
163
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "float", exception));
167
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "float", exception));
171
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "float", exception));
191
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "double", exception));
195
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "double", exception));
199
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "double", exception));
219
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
223
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
227
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
244
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(ToString(value), "DateTime", exception));
256
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "DateTime", exception));
260
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "DateTime", exception));
280
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UniqueId", exception));
284
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UniqueId", exception));
301
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "TimeSpan", exception));
305
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "TimeSpan", exception));
309
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "TimeSpan", exception));
326
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Guid", exception));
330
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Guid", exception));
334
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Guid", exception));
351
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
355
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
359
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
376
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(buffer, offset, count, exception));
388
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(buffer, offset, count, exception));
401
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(value, exception));
413
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(buffer, offset, count, exception));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (40)
137
XmlExceptionHelper
.ThrowStartElementExpected(this);
143
XmlExceptionHelper
.ThrowStartElementExpected(this, name);
149
XmlExceptionHelper
.ThrowStartElementExpected(this, localName, namespaceUri);
155
XmlExceptionHelper
.ThrowStartElementExpected(this, localName, namespaceUri);
189
XmlExceptionHelper
.ThrowFullStartElementExpected(this);
197
XmlExceptionHelper
.ThrowFullStartElementExpected(this, name);
205
XmlExceptionHelper
.ThrowFullStartElementExpected(this, localName, namespaceUri);
213
XmlExceptionHelper
.ThrowFullStartElementExpected(this, localName, namespaceUri);
314
XmlExceptionHelper
.ThrowBase64DataExpected(this);
572
XmlExceptionHelper
.ThrowUndefinedPrefix(this, prefix);
730
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "DateTime", exception));
734
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "DateTime", exception));
761
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "UniqueId", exception));
765
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "UniqueId", exception));
792
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "Guid", exception));
796
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "Guid", exception));
800
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "Guid", exception));
964
XmlExceptionHelper
.ThrowConversionOverflow(this, i.ToString(NumberFormatInfo.CurrentInfo), "Int16");
1530
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Boolean", exception));
1534
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Boolean", exception));
1546
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("DateTime", exception));
1550
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("DateTime", exception));
1554
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("DateTime", exception));
1566
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Decimal", exception));
1570
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Decimal", exception));
1574
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Decimal", exception));
1586
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Double", exception));
1590
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Double", exception));
1594
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Double", exception));
1606
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Int32", exception));
1610
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Int32", exception));
1614
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Int32", exception));
1626
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Int64", exception));
1630
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Int64", exception));
1634
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Int64", exception));
1646
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Single", exception));
1650
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Single", exception));
1654
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("Single", exception));
1666
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("String", exception));
1670
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException("String", exception));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (22)
636
XmlExceptionHelper
.ThrowProcessingInstructionNotSupported(this);
641
XmlExceptionHelper
.ThrowDeclarationNotFirst(this);
666
XmlExceptionHelper
.ThrowTokenExpected(this, "?>", Encoding.UTF8.GetString(buffer, offset, 2));
682
XmlExceptionHelper
.ThrowXmlException(this, exception);
791
XmlExceptionHelper
.ThrowTokenExpected(this, "=", (char)BufferReader.GetByte());
800
XmlExceptionHelper
.ThrowTokenExpected(this, "\"", (char)BufferReader.GetByte());
834
XmlExceptionHelper
.ThrowTokenExpected(this, ((char)quoteChar).ToString(), (char)ch);
887
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpaceBetweenAttributes)));
891
XmlExceptionHelper
.ThrowMaxBytesPerReadExceeded(this, _maxBytesPerRead);
920
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidFFFE)));
990
XmlExceptionHelper
.ThrowTokenExpected(this, ">", (char)BufferReader.GetByte());
1008
XmlExceptionHelper
.ThrowTagMismatch(this, elementNode.Prefix.GetString(), elementNode.LocalName.GetString(), _prefix.GetString(), _localName.GetString());
1016
XmlExceptionHelper
.ThrowTokenExpected(this, ">", (char)BufferReader.GetByte());
1026
XmlExceptionHelper
.ThrowTokenExpected(this, "--", (char)BufferReader.GetByte());
1041
XmlExceptionHelper
.ThrowInvalidXml(this, b);
1056
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidCommentChars)));
1077
XmlExceptionHelper
.ThrowTokenExpected(this, "[CDATA[", Encoding.UTF8.GetString(buffer, offset, 7));
1189
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidFFFE)));
1349
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlCDATAInvalidAtTopLevel)));
1365
XmlExceptionHelper
.ThrowInvalidRootData(this);
1392
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlCloseCData)));
1404
XmlExceptionHelper
.ThrowInvalidXml(this, ch);