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