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