58 references to ExceptionType
System.Xml (58)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
3055XmlConvert.VerifyCharData(val, ExceptionType.ArgumentException, ExceptionType.XmlException); 3126throw XmlConvert.CreateInvalidCharException(ch, '\0', ExceptionType.XmlException);
System\Xml\Core\XmlCharCheckingReader.cs (2)
554XmlConvert.VerifyCharData( value, ExceptionType.ArgumentException, ExceptionType.XmlException );
System\Xml\Core\XmlCharCheckingWriter.cs (3)
278XmlConvert.VerifyQName( name, ExceptionType.XmlException ); 295XmlConvert.VerifyCharData( str, ExceptionType.ArgumentException ); 299XmlConvert.VerifyCharData( data, offset, len, ExceptionType.ArgumentException );
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
196XmlConvert.VerifyQName( name, ExceptionType.XmlException );
System\Xml\Core\XmlWellFormedWriter.cs (1)
358XmlConvert.VerifyQName(name, ExceptionType.XmlException);
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
55XmlConvert.VerifyQName(name, ExceptionType.XmlException);
System\Xml\Core\XmlWriter.cs (2)
232WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 238WriteString(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException));
System\Xml\Core\XmlWriterAsync.cs (2)
188return WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 194return WriteStringAsync(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException));
System\Xml\Dom\DocumentXmlWriter.cs (5)
241XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 248XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 255XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 273XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 282XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException);
System\Xml\XmlConvert.cs (38)
332throw CreateInvalidNameCharException(name, endPos, ExceptionType.XmlException); 352return VerifyQName(name, ExceptionType.XmlException); 359internal static unsafe string VerifyQName(string name, ExceptionType exceptionType) { 380return VerifyNCName(name, ExceptionType.XmlException); 383internal static string VerifyNCName(string name, ExceptionType exceptionType) { 443return VerifyNMTOKEN(name, ExceptionType.XmlException); 446internal static string VerifyNMTOKEN(string name, ExceptionType exceptionType) { 496VerifyCharData(content, ExceptionType.XmlException); 510throw CreateInvalidCharException(publicId, pos, ExceptionType.XmlException); 1456internal static void VerifyCharData(string data, ExceptionType exceptionType) { 1463internal static unsafe void VerifyCharData( string data, ExceptionType invCharExceptionType, ExceptionType invSurrogateExceptionType ) { 1504internal static unsafe void VerifyCharData( char[] data, int offset, int len, ExceptionType exceptionType ) { 1587internal static Exception CreateException( string res, ExceptionType exceptionType ) { 1591internal static Exception CreateException( string res, ExceptionType exceptionType, int lineNo, int linePos ) { 1593case ExceptionType.ArgumentException: 1595case ExceptionType.XmlException: 1601internal static Exception CreateException( string res, string arg, ExceptionType exceptionType ) { 1605internal static Exception CreateException( string res, string arg, ExceptionType exceptionType, int lineNo, int linePos ) { 1607case ExceptionType.ArgumentException: 1609case ExceptionType.XmlException: 1615internal static Exception CreateException( string res, string[] args, ExceptionType exceptionType ) { 1619internal static Exception CreateException(string res, string[] args, ExceptionType exceptionType, int lineNo, int linePos) { 1621case ExceptionType.ArgumentException: 1623case ExceptionType.XmlException: 1630return CreateInvalidSurrogatePairException( low, hi, ExceptionType.ArgumentException ); 1633internal static Exception CreateInvalidSurrogatePairException(char low, char hi, ExceptionType exceptionType) { 1637internal static Exception CreateInvalidSurrogatePairException( char low, char hi, ExceptionType exceptionType, int lineNo, int linePos ) { 1646return CreateInvalidHighSurrogateCharException( hi, ExceptionType.ArgumentException ); 1649internal static Exception CreateInvalidHighSurrogateCharException( char hi, ExceptionType exceptionType ) { 1653internal static Exception CreateInvalidHighSurrogateCharException(char hi, ExceptionType exceptionType, int lineNo, int linePos) { 1658return CreateInvalidCharException(data, length, invCharPos, ExceptionType.ArgumentException); 1661internal static Exception CreateInvalidCharException(char[] data, int length, int invCharPos, ExceptionType exceptionType) { 1666return CreateInvalidCharException( data, invCharPos, ExceptionType.ArgumentException ); 1669internal static Exception CreateInvalidCharException( string data, int invCharPos, ExceptionType exceptionType ) { 1674return CreateInvalidCharException(invChar, nextChar, ExceptionType.ArgumentException); 1677internal static Exception CreateInvalidCharException( char invChar, char nextChar, ExceptionType exceptionType) { 1681internal static Exception CreateInvalidNameCharException(string name, int index, ExceptionType exceptionType) {