55 references to ExceptionType
System.Private.Xml (55)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
3451
XmlConvert.VerifyCharData(val,
ExceptionType
.ArgumentException,
ExceptionType
.XmlException);
3524
throw XmlConvert.CreateInvalidCharException(ch, '\0',
ExceptionType
.XmlException);
System\Xml\Core\XmlCharCheckingReader.cs (2)
623
XmlConvert.VerifyCharData(value,
ExceptionType
.ArgumentException,
ExceptionType
.XmlException);
System\Xml\Core\XmlCharCheckingWriter.cs (3)
305
XmlConvert.VerifyQName(name,
ExceptionType
.XmlException);
327
XmlConvert.VerifyCharData(str,
ExceptionType
.ArgumentException);
332
XmlConvert.VerifyCharData(data, offset, len,
ExceptionType
.ArgumentException);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
249
XmlConvert.VerifyQName(name,
ExceptionType
.XmlException);
System\Xml\Core\XmlWellFormedWriter.cs (1)
364
XmlConvert.VerifyQName(name,
ExceptionType
.XmlException);
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
65
XmlConvert.VerifyQName(name,
ExceptionType
.XmlException);
System\Xml\Core\XmlWriter.cs (2)
216
WriteString(XmlConvert.VerifyNMTOKEN(name,
ExceptionType
.ArgumentException));
223
WriteString(XmlConvert.VerifyQName(name,
ExceptionType
.ArgumentException));
System\Xml\Core\XmlWriterAsync.cs (2)
202
return WriteStringAsync(XmlConvert.VerifyNMTOKEN(name,
ExceptionType
.ArgumentException));
209
return WriteStringAsync(XmlConvert.VerifyQName(name,
ExceptionType
.ArgumentException));
System\Xml\Dom\DocumentXmlWriter.cs (5)
283
XmlConvert.VerifyCharData(text,
ExceptionType
.ArgumentException);
291
XmlConvert.VerifyCharData(text,
ExceptionType
.ArgumentException);
299
XmlConvert.VerifyCharData(text,
ExceptionType
.ArgumentException);
320
XmlConvert.VerifyCharData(text,
ExceptionType
.ArgumentException);
331
XmlConvert.VerifyCharData(text,
ExceptionType
.ArgumentException);
System\Xml\XmlConvert.cs (35)
322
throw CreateInvalidNameCharException(name, endPos,
ExceptionType
.XmlException);
345
internal static string VerifyQName(string name,
ExceptionType
exceptionType)
367
return VerifyNCName(name,
ExceptionType
.XmlException);
370
internal static string VerifyNCName(string name,
ExceptionType
exceptionType)
443
return VerifyNMTOKEN(name,
ExceptionType
.XmlException);
446
internal static string VerifyNMTOKEN(string name,
ExceptionType
exceptionType)
497
VerifyCharData(content,
ExceptionType
.XmlException);
511
throw CreateInvalidCharException(publicId, pos,
ExceptionType
.XmlException);
1389
internal static void VerifyCharData(string? data,
ExceptionType
exceptionType)
1394
internal static void VerifyCharData(string? data,
ExceptionType
invCharExceptionType,
ExceptionType
invSurrogateExceptionType)
1436
internal static void VerifyCharData(char[] data, int offset, int len,
ExceptionType
exceptionType)
1529
internal static Exception CreateException(string res,
ExceptionType
exceptionType, int lineNo, int linePos)
1533
case
ExceptionType
.ArgumentException:
1535
case
ExceptionType
.XmlException:
1541
internal static Exception CreateException(string res, string arg,
ExceptionType
exceptionType)
1546
internal static Exception CreateException(string res, string arg,
ExceptionType
exceptionType, int lineNo, int linePos)
1550
case
ExceptionType
.ArgumentException:
1552
case
ExceptionType
.XmlException:
1558
internal static Exception CreateException(string res, string[] args,
ExceptionType
exceptionType)
1563
internal static Exception CreateException(string res, string[] args,
ExceptionType
exceptionType, int lineNo, int linePos)
1567
case
ExceptionType
.ArgumentException:
1569
case
ExceptionType
.XmlException:
1577
return CreateInvalidSurrogatePairException(low, hi,
ExceptionType
.ArgumentException);
1580
internal static Exception CreateInvalidSurrogatePairException(char low, char hi,
ExceptionType
exceptionType)
1585
internal static Exception CreateInvalidSurrogatePairException(char low, char hi,
ExceptionType
exceptionType, int lineNo, int linePos)
1596
return CreateInvalidHighSurrogateCharException(hi,
ExceptionType
.ArgumentException);
1599
internal static Exception CreateInvalidHighSurrogateCharException(char hi,
ExceptionType
exceptionType)
1604
internal static Exception CreateInvalidHighSurrogateCharException(char hi,
ExceptionType
exceptionType, int lineNo, int linePos)
1609
internal static Exception CreateInvalidCharException(char[] data, int length, int invCharPos,
ExceptionType
exceptionType)
1616
return CreateInvalidCharException(data, invCharPos,
ExceptionType
.ArgumentException);
1619
internal static Exception CreateInvalidCharException(string data, int invCharPos,
ExceptionType
exceptionType)
1626
return CreateInvalidCharException(invChar, nextChar,
ExceptionType
.ArgumentException);
1629
internal static Exception CreateInvalidCharException(char invChar, char nextChar,
ExceptionType
exceptionType)
1634
internal static Exception CreateInvalidNameCharException(string name, int index,
ExceptionType
exceptionType)