54 references to ExceptionType
dotnet-svcutil-lib (54)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (3)
3468XmlConvert.VerifyCharData(val, ExceptionType.ArgumentException, ExceptionType.XmlException); 3546throw XmlConvert.CreateInvalidCharException(ch, '\0', ExceptionType.XmlException);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (2)
662XmlConvert.VerifyCharData(value, ExceptionType.ArgumentException, ExceptionType.XmlException);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (3)
337XmlConvert.VerifyQName(name, ExceptionType.XmlException); 357XmlConvert.VerifyCharData(str, ExceptionType.ArgumentException); 362XmlConvert.VerifyCharData(data, offset, len, ExceptionType.ArgumentException);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (1)
383XmlConvert.VerifyQName(name, ExceptionType.XmlException);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (2)
245WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 252WriteString(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException));
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (5)
284XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 292XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 300XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 321XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 332XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (38)
371throw CreateInvalidNameCharException(name, endPos, ExceptionType.XmlException); 394return VerifyQName(name, ExceptionType.XmlException); 397internal static unsafe string VerifyQName(string name, ExceptionType exceptionType) 421return VerifyNCName(name, ExceptionType.XmlException); 424internal static string VerifyNCName(string name, ExceptionType exceptionType) 495return VerifyNMTOKEN(name, ExceptionType.XmlException); 498internal static string VerifyNMTOKEN(string name, ExceptionType exceptionType) 559VerifyCharData(content, ExceptionType.XmlException); 576throw CreateInvalidCharException(publicId, pos, ExceptionType.XmlException); 1618internal static void VerifyCharData(string data, ExceptionType exceptionType) 1623internal static unsafe void VerifyCharData(string data, ExceptionType invCharExceptionType, ExceptionType invSurrogateExceptionType) 1665internal static unsafe void VerifyCharData(char[] data, int offset, int len, ExceptionType exceptionType) 1758internal static Exception CreateException(string res, ExceptionType exceptionType) 1763internal static Exception CreateException(string res, ExceptionType exceptionType, int lineNo, int linePos) 1767case ExceptionType.ArgumentException: 1769case ExceptionType.XmlException: 1775internal static Exception CreateException(string res, string arg, ExceptionType exceptionType) 1780internal static Exception CreateException(string res, string arg, ExceptionType exceptionType, int lineNo, int linePos) 1784case ExceptionType.ArgumentException: 1786case ExceptionType.XmlException: 1792internal static Exception CreateException(string res, string[] args, ExceptionType exceptionType) 1797internal static Exception CreateException(string res, string[] args, ExceptionType exceptionType, int lineNo, int linePos) 1801case ExceptionType.ArgumentException: 1803case ExceptionType.XmlException: 1811return CreateInvalidSurrogatePairException(low, hi, ExceptionType.ArgumentException); 1814internal static Exception CreateInvalidSurrogatePairException(char low, char hi, ExceptionType exceptionType) 1819internal static Exception CreateInvalidSurrogatePairException(char low, char hi, ExceptionType exceptionType, int lineNo, int linePos) 1830return CreateInvalidHighSurrogateCharException(hi, ExceptionType.ArgumentException); 1833internal static Exception CreateInvalidHighSurrogateCharException(char hi, ExceptionType exceptionType) 1838internal static Exception CreateInvalidHighSurrogateCharException(char hi, ExceptionType exceptionType, int lineNo, int linePos) 1845return CreateInvalidCharException(data, length, invCharPos, ExceptionType.ArgumentException); 1848internal static Exception CreateInvalidCharException(char[] data, int length, int invCharPos, ExceptionType exceptionType) 1855return CreateInvalidCharException(data, invCharPos, ExceptionType.ArgumentException); 1858internal static Exception CreateInvalidCharException(string data, int invCharPos, ExceptionType exceptionType) 1865return CreateInvalidCharException(invChar, nextChar, ExceptionType.ArgumentException); 1868internal static Exception CreateInvalidCharException(char invChar, char nextChar, ExceptionType exceptionType) 1873internal static Exception CreateInvalidNameCharException(string name, int index, ExceptionType exceptionType)