212 references to XmlExceptionHelper
System.Runtime.Serialization (212)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
61
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTimeOffset", exception));
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (10)
218
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(ticksvalue, "Int64", exception));
222
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(ticksvalue, "Int64", exception));
226
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(ticksvalue, "Int64", exception));
248
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(ticksvalue, "DateTime", exception));
320
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
324
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
328
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
358
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
362
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
366
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
System\Runtime\Serialization\Json\XmlJsonReader.cs (30)
495
XmlExceptionHelper
.ThrowXmlException(this,
552
XmlExceptionHelper
.ThrowXmlException(this,
593
XmlExceptionHelper
.ThrowXmlException(this,
607
XmlExceptionHelper
.ThrowTokenExpected(this, "false", Encoding.UTF8.GetString(buffer, offset, 5));
615
XmlExceptionHelper
.ThrowTokenExpected(this, "false", Encoding.UTF8.GetString(buffer, offset, 4) + (char)ch);
628
XmlExceptionHelper
.ThrowTokenExpected(this, "true", Encoding.UTF8.GetString(buffer, offset, 4));
636
XmlExceptionHelper
.ThrowTokenExpected(this, "true", Encoding.UTF8.GetString(buffer, offset, 4) + (char)ch);
649
XmlExceptionHelper
.ThrowTokenExpected(this, "null", Encoding.UTF8.GetString(buffer, offset, 4));
662
XmlExceptionHelper
.ThrowTokenExpected(this, "null", Encoding.UTF8.GetString(buffer, offset, 4) + (char)ch);
681
XmlExceptionHelper
.ThrowXmlException(this,
697
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
701
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
705
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
723
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
727
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
731
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
1010
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "char", exception));
1022
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
1026
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
1030
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
1197
XmlExceptionHelper
.ThrowTokenExpected(this, "\"", (char)ch);
1241
XmlExceptionHelper
.ThrowXmlException(this,
1260
XmlExceptionHelper
.ThrowXmlException(this,
1292
XmlExceptionHelper
.ThrowXmlException(this,
1342
XmlExceptionHelper
.ThrowXmlException(this,
1386
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.JsonInvalidFFFE)));
1491
XmlExceptionHelper
.ThrowTokenExpected(this, "\"", (char)ch);
1602
XmlExceptionHelper
.ThrowTokenExpected(this, ((char)characterToSkip).ToString(), (char)BufferReader.GetByte());
1655
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.JsonEncounteredUnexpectedCharacter, val[i])));
1683
XmlExceptionHelper
.ThrowXmlException(this,
System\Runtime\Serialization\XmlReaderDelegator.cs (12)
506
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "byte[]", exception));
510
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "byte[]", exception));
726
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
730
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
734
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
748
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
752
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
756
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Guid", exception));
772
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Uri", exception));
776
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Uri", exception));
789
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Uri", exception));
793
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(str, "Uri", exception));
System\Xml\ArrayHelper.cs (2)
20
XmlExceptionHelper
.ThrowMaxArrayLengthOrMaxItemsQuotaExceeded(reader, maxArrayLength);
41
XmlExceptionHelper
.ThrowMaxArrayLengthOrMaxItemsQuotaExceeded(reader, maxArrayLength);
System\Xml\ValueHandle.cs (1)
800
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(bytes, byteOffset, byteCount, exception));
System\Xml\XmlBaseReader.cs (27)
152
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlDeclMissingVersion)));
155
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlMalformedDecl)));
159
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlDeclMissingVersion)));
168
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlMalformedDecl)));
172
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlMalformedDecl)));
188
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlMalformedDecl)));
194
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlInvalidStandalone)));
203
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlMalformedDecl)));
209
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(valueSR)));
279
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
289
XmlExceptionHelper
.ThrowUnexpectedEndOfFile(this);
298
XmlExceptionHelper
.ThrowMultipleRootElements(this);
304
XmlExceptionHelper
.ThrowMaxDepthExceeded(this, quotas.MaxDepth);
331
XmlExceptionHelper
.ThrowUnexpectedEndElement(this);
381
XmlExceptionHelper
.ThrowEmptyNamespace(this);
386
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlSpecificBindingPrefix, "xml", xmlNamespace)));
390
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace)));
715
XmlExceptionHelper
.ThrowUndefinedPrefix(this, PrefixHandle.GetString(prefix));
723
XmlExceptionHelper
.ThrowUndefinedPrefix(this, prefix.GetString());
771
XmlExceptionHelper
.ThrowDuplicateAttribute(this, attributeNode1.Prefix.GetString(), attributeNode2.Prefix.GetString(), attributeNode1.LocalName.GetString(), attributeNode1.Namespace.Uri.GetString());
782
XmlExceptionHelper
.ThrowDuplicateAttribute(this, xmlns, xmlns, attributeNode1.Namespace.Prefix.GetString(), xmlnsNamespace);
805
XmlExceptionHelper
.ThrowDuplicateXmlnsAttribute(this, attributeNodes[attribute1].Namespace.Prefix.GetString(), xmlnsNamespace);
807
XmlExceptionHelper
.ThrowDuplicateAttribute(this, attributeNodes[attribute1].Prefix.GetString(), attributeNodes[attribute2].Prefix.GetString(), attributeNodes[attribute1].LocalName.GetString(), attributeNodes[attribute1].Namespace.Uri.GetString());
1363
XmlExceptionHelper
.ThrowEndElementExpected(this, elementNode.LocalName.GetString(), elementNode.Namespace.Uri.GetString());
1411
XmlExceptionHelper
.ThrowMaxArrayLengthExceeded(this, quotas.MaxArrayLength);
1651
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, quotas.MaxStringContentLength);
3278
XmlExceptionHelper
.ThrowMaxNameTableCharCountExceeded(reader, maxCharCount);
System\Xml\XmlBinaryReader.cs (10)
127
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, Quotas.MaxStringContentLength);
719
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
869
XmlExceptionHelper
.ThrowMaxBytesPerReadExceeded(this, this.maxBytesPerRead);
941
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1131
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1134
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1136
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1139
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1143
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
1147
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this);
System\Xml\XmlBufferReader.cs (37)
185
XmlExceptionHelper
.ThrowUnexpectedEndOfFile(reader);
193
XmlExceptionHelper
.ThrowMaxBytesPerReadExceeded(reader, windowOffsetMax - windowOffset);
206
XmlExceptionHelper
.ThrowUnexpectedEndOfFile(reader);
214
XmlExceptionHelper
.ThrowMaxBytesPerReadExceeded(reader, windowOffsetMax - windowOffset);
219
XmlExceptionHelper
.ThrowMaxBytesPerReadExceeded(reader, windowOffsetMax - windowOffset);
340
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
387
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
467
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this.reader);
495
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTime", exception));
499
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTime", exception));
503
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "DateTime", exception));
517
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "TimeSpan", exception));
521
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "TimeSpan", exception));
525
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value.ToString(CultureInfo.InvariantCulture), "TimeSpan", exception));
736
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
748
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
762
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
775
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
789
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
805
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
808
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
832
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
836
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
844
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
867
XmlExceptionHelper
.ThrowInvalidCharRef(reader);
1149
XmlExceptionHelper
.ThrowInvalidBinaryFormat(this.reader);
1222
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
1232
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
1238
XmlExceptionHelper
.ThrowXmlDictionaryStringIDOutOfRange(this.reader);
1239
XmlExceptionHelper
.ThrowXmlDictionaryStringIDUndefinedSession(this.reader, sessionKey);
1245
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
1251
XmlExceptionHelper
.ThrowXmlDictionaryStringIDOutOfRange(this.reader);
1252
XmlExceptionHelper
.ThrowXmlDictionaryStringIDUndefinedStatic(this.reader, staticKey);
1354
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
1368
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
1385
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
1398
XmlExceptionHelper
.ThrowInvalidBinaryFormat(reader);
System\Xml\XmlConverter.cs (35)
73
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Boolean", exception));
77
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Boolean", exception));
102
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
106
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
110
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int32", exception));
130
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
134
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
138
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Int64", exception));
158
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "float", exception));
162
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "float", exception));
166
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "float", exception));
186
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "double", exception));
190
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "double", exception));
194
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "double", exception));
214
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
218
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
222
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "decimal", exception));
239
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(ToString(value), "DateTime", exception));
251
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "DateTime", exception));
255
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "DateTime", exception));
275
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UniqueId", exception));
279
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UniqueId", exception));
296
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "TimeSpan", exception));
300
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "TimeSpan", exception));
304
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "TimeSpan", exception));
322
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Guid", exception));
326
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Guid", exception));
330
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "Guid", exception));
347
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
351
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
355
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(value, "UInt64", exception));
372
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(buffer, offset, count, exception));
384
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(buffer, offset, count, exception));
397
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(value, exception));
409
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateEncodingException(buffer, offset, count, exception));
System\Xml\XmlDictionaryReader.cs (24)
221
XmlExceptionHelper
.ThrowStartElementExpected(this);
227
XmlExceptionHelper
.ThrowStartElementExpected(this, name);
233
XmlExceptionHelper
.ThrowStartElementExpected(this, localName, namespaceUri);
239
XmlExceptionHelper
.ThrowStartElementExpected(this, localName, namespaceUri);
273
XmlExceptionHelper
.ThrowFullStartElementExpected(this);
281
XmlExceptionHelper
.ThrowFullStartElementExpected(this, name);
289
XmlExceptionHelper
.ThrowFullStartElementExpected(this, localName, namespaceUri);
297
XmlExceptionHelper
.ThrowFullStartElementExpected(this, localName, namespaceUri);
391
XmlExceptionHelper
.ThrowMaxArrayLengthExceeded(this, maxByteArrayContentLength);
401
XmlExceptionHelper
.ThrowBase64DataExpected(this);
442
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, maxStringContentLength);
474
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, maxStringContentLength);
512
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, maxStringContentLength);
521
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, maxStringContentLength);
560
XmlExceptionHelper
.ThrowMaxArrayLengthExceeded(this, maxByteArrayContentLength);
711
XmlExceptionHelper
.ThrowUndefinedPrefix(this, prefix);
869
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "DateTime", exception));
873
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "DateTime", exception));
900
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "UniqueId", exception));
904
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "UniqueId", exception));
932
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "Guid", exception));
936
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "Guid", exception));
940
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
XmlExceptionHelper
.CreateConversionException(string.Empty, "Guid", exception));
1110
XmlExceptionHelper
.ThrowConversionOverflow(this, i.ToString(NumberFormatInfo.CurrentInfo), "Int16");
System\Xml\XmlMtomReader.cs (1)
1399
XmlExceptionHelper
.ThrowMaxStringContentLengthExceeded(this, this.Quotas.MaxStringContentLength);
System\Xml\XmlUTF8TextReader.cs (22)
377
XmlExceptionHelper
.ThrowProcessingInstructionNotSupported(this);
382
XmlExceptionHelper
.ThrowDeclarationNotFirst(this);
407
XmlExceptionHelper
.ThrowTokenExpected(this, "?>", Encoding.UTF8.GetString(buffer, offset, 2));
423
XmlExceptionHelper
.ThrowXmlException(this, exception);
532
XmlExceptionHelper
.ThrowTokenExpected(this, "=", (char)BufferReader.GetByte());
541
XmlExceptionHelper
.ThrowTokenExpected(this, "\"", (char)BufferReader.GetByte());
575
XmlExceptionHelper
.ThrowTokenExpected(this, ((char)quoteChar).ToString(), (char)ch);
628
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlSpaceBetweenAttributes)));
632
XmlExceptionHelper
.ThrowMaxBytesPerReadExceeded(this, this.maxBytesPerRead);
643
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlInvalidFFFE)));
731
XmlExceptionHelper
.ThrowTokenExpected(this, ">", (char)BufferReader.GetByte());
749
XmlExceptionHelper
.ThrowTagMismatch(this, elementNode.Prefix.GetString(), elementNode.LocalName.GetString(), prefix.GetString(), localName.GetString());
757
XmlExceptionHelper
.ThrowTokenExpected(this, ">", (char)BufferReader.GetByte());
767
XmlExceptionHelper
.ThrowTokenExpected(this, "--", (char)BufferReader.GetByte());
782
XmlExceptionHelper
.ThrowInvalidXml(this, b);
797
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlInvalidCommentChars)));
818
XmlExceptionHelper
.ThrowTokenExpected(this, "[CDATA[", Encoding.UTF8.GetString(buffer, offset, 7));
930
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlInvalidFFFE)));
1090
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlCDATAInvalidAtTopLevel)));
1106
XmlExceptionHelper
.ThrowInvalidRootData(this);
1133
XmlExceptionHelper
.ThrowXmlException(this, new XmlException(SR.GetString(SR.XmlCloseCData)));
1145
XmlExceptionHelper
.ThrowInvalidXml(this, ch);