107 references to XmlSchemaException
System.Private.Xml (107)
System\Xml\Schema\Asttree.cs (10)
552
throw new
XmlSchemaException
(SR.Sch_EmptyXPath, string.Empty);
574
throw new
XmlSchemaException
(SR.Sch_ICXpathError, xPath);
587
throw new
XmlSchemaException
(SR.Sch_ICXpathError, xPath);
598
throw new
XmlSchemaException
(SR.Sch_SelectorAttr, xPath);
609
throw new
XmlSchemaException
(SR.Sch_ICXpathError, xPath);
637
throw new
XmlSchemaException
(SR.Sch_ICXpathError, xPath);
658
throw new
XmlSchemaException
(SR.Sch_ICXpathError, xPath);
666
throw new
XmlSchemaException
(SR.Sch_ICXpathError, xPath);
670
throw new
XmlSchemaException
(SR.Sch_ICXpathError, xPath);
701
throw new
XmlSchemaException
(SR.Sch_UnresolvedPrefix, axis.Prefix);
System\Xml\Schema\DataTypeImplementation.cs (13)
387
throw new
XmlSchemaException
(SR.Sch_ListFromNonatomic, string.Empty);
391
throw new
XmlSchemaException
(SR.Sch_ListFromNonatomic, string.Empty);
1134
return new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
1263
exception = new
XmlSchemaException
(SR.Sch_UnionFailedEx, s);
1302
exception = new
XmlSchemaException
(SR.Sch_UnionFailedEx, value.ToString());
1882
return new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
1913
return new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
1952
return new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
2707
return new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
3040
return new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
3702
throw new
XmlSchemaException
(SR.Sch_InvalidValue, s);
3724
throw new
XmlSchemaException
(SR.Sch_InvalidValue, s);
3738
throw new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
System\Xml\Schema\DtdValidator.cs (2)
554
XmlSchemaException e = new
XmlSchemaException
(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString());
615
XmlSchemaException e = new
XmlSchemaException
(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString());
System\Xml\Schema\FacetChecker.cs (63)
317
throw new
XmlSchemaException
(SR.Sch_TotalDigitsMismatch, string.Empty);
344
throw new
XmlSchemaException
(SR.Sch_FractionDigitsMismatch, string.Empty);
386
throw new
XmlSchemaException
(SR.Sch_MaxInclusiveMismatch, string.Empty);
393
throw new
XmlSchemaException
(SR.Sch_MaxIncExlMismatch, string.Empty);
403
throw new
XmlSchemaException
(SR.Sch_MaxExclusiveMismatch, string.Empty);
410
throw new
XmlSchemaException
(SR.Sch_MaxExlIncMismatch, string.Empty);
420
throw new
XmlSchemaException
(SR.Sch_MinInclusiveMismatch, string.Empty);
427
throw new
XmlSchemaException
(SR.Sch_MinIncExlMismatch, string.Empty);
434
throw new
XmlSchemaException
(SR.Sch_MinIncMaxExlMismatch, string.Empty);
444
throw new
XmlSchemaException
(SR.Sch_MinExclusiveMismatch, string.Empty);
451
throw new
XmlSchemaException
(SR.Sch_MinExlIncMismatch, string.Empty);
458
throw new
XmlSchemaException
(SR.Sch_MinExlMaxExlMismatch, string.Empty);
477
throw new
XmlSchemaException
(SR.Sch_MaxInclusiveExclusive, string.Empty);
484
throw new
XmlSchemaException
(SR.Sch_MinInclusiveExclusive, string.Empty);
491
throw new
XmlSchemaException
(SR.Sch_LengthAndMinMax, string.Empty);
504
throw new
XmlSchemaException
(SR.Sch_MinLengthGtMaxLength, string.Empty);
515
throw new
XmlSchemaException
(SR.Sch_MinInclusiveGtMaxInclusive, string.Empty);
525
throw new
XmlSchemaException
(SR.Sch_MinInclusiveGtMaxExclusive, string.Empty);
535
throw new
XmlSchemaException
(SR.Sch_MinExclusiveGtMaxExclusive, string.Empty);
545
throw new
XmlSchemaException
(SR.Sch_MinExclusiveGtMaxInclusive, string.Empty);
552
throw new
XmlSchemaException
(SR.Sch_FractionDigitsGtTotalDigits, string.Empty);
877
return new
XmlSchemaException
(SR.Sch_PatternConstraintFailed, string.Empty);
1022
return new
XmlSchemaException
(SR.Sch_MaxInclusiveConstraintFailed, string.Empty);
1030
return new
XmlSchemaException
(SR.Sch_MaxExclusiveConstraintFailed, string.Empty);
1038
return new
XmlSchemaException
(SR.Sch_MinInclusiveConstraintFailed, string.Empty);
1046
return new
XmlSchemaException
(SR.Sch_MinExclusiveConstraintFailed, string.Empty);
1053
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1109
return new
XmlSchemaException
(SR.Sch_TotalDigitsConstraintFailed, string.Empty);
1113
return new
XmlSchemaException
(SR.Sch_FractionDigitsConstraintFailed, string.Empty);
1138
return new
XmlSchemaException
(SR.Sch_MaxInclusiveConstraintFailed, string.Empty);
1145
return new
XmlSchemaException
(SR.Sch_MaxExclusiveConstraintFailed, string.Empty);
1153
return new
XmlSchemaException
(SR.Sch_MinInclusiveConstraintFailed, string.Empty);
1161
return new
XmlSchemaException
(SR.Sch_MinExclusiveConstraintFailed, string.Empty);
1168
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1213
return new
XmlSchemaException
(SR.Sch_MaxInclusiveConstraintFailed, string.Empty);
1221
return new
XmlSchemaException
(SR.Sch_MaxExclusiveConstraintFailed, string.Empty);
1229
return new
XmlSchemaException
(SR.Sch_MinInclusiveConstraintFailed, string.Empty);
1237
return new
XmlSchemaException
(SR.Sch_MinExclusiveConstraintFailed, string.Empty);
1244
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1284
return new
XmlSchemaException
(SR.Sch_MaxInclusiveConstraintFailed, string.Empty);
1292
return new
XmlSchemaException
(SR.Sch_MaxExclusiveConstraintFailed, string.Empty);
1300
return new
XmlSchemaException
(SR.Sch_MinInclusiveConstraintFailed, string.Empty);
1308
return new
XmlSchemaException
(SR.Sch_MinExclusiveConstraintFailed, string.Empty);
1316
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1375
return new
XmlSchemaException
(SR.Sch_LengthConstraintFailed, string.Empty);
1382
return new
XmlSchemaException
(SR.Sch_MinLengthConstraintFailed, string.Empty);
1389
return new
XmlSchemaException
(SR.Sch_MaxLengthConstraintFailed, string.Empty);
1396
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1457
return new
XmlSchemaException
(SR.Sch_EmptyAttributeValue, string.Empty);
1461
return new
XmlSchemaException
(SR.Sch_InvalidLanguageId, string.Empty);
1509
return new
XmlSchemaException
(SR.Sch_LengthConstraintFailed, string.Empty);
1516
return new
XmlSchemaException
(SR.Sch_MinLengthConstraintFailed, string.Empty);
1523
return new
XmlSchemaException
(SR.Sch_MaxLengthConstraintFailed, string.Empty);
1530
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1578
return new
XmlSchemaException
(SR.Sch_LengthConstraintFailed, string.Empty);
1585
return new
XmlSchemaException
(SR.Sch_MinLengthConstraintFailed, string.Empty);
1592
return new
XmlSchemaException
(SR.Sch_MaxLengthConstraintFailed, string.Empty);
1599
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1641
return new
XmlSchemaException
(SR.Sch_LengthConstraintFailed, string.Empty);
1649
return new
XmlSchemaException
(SR.Sch_MinLengthConstraintFailed, string.Empty);
1657
return new
XmlSchemaException
(SR.Sch_MaxLengthConstraintFailed, string.Empty);
1665
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
1710
return new
XmlSchemaException
(SR.Sch_EnumerationConstraintFailed, string.Empty);
System\Xml\Schema\SchemaAttDef.cs (1)
201
validationEventHandling.SendEvent(new
XmlSchemaException
(SR.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
System\Xml\Schema\SchemaElementDecl.cs (2)
240
throw new
XmlSchemaException
(SR.Sch_MissRequiredAttribute, attdef.Name.ToString());
244
throw new
XmlSchemaException
(SR.Sch_StandAlone, string.Empty);
System\Xml\Schema\SchemaInfo.cs (5)
163
throw new
XmlSchemaException
(SR.Sch_UndeclaredAttribute, qname.ToString());
167
throw new
XmlSchemaException
(SR.Sch_UndeclaredAttribute, qname.ToString());
265
throw new
XmlSchemaException
(SR.Sch_UndeclaredAttribute, qname.ToString());
269
throw new
XmlSchemaException
(SR.Sch_ProhibitedAttribute, qname.ToString());
296
eventhandler?.Invoke(this, new ValidationEventArgs(new
XmlSchemaException
(SR.Sch_MixSchemaTypes, string.Empty)));
System\Xml\Schema\XdrValidator.cs (1)
450
SendValidationEvent(new
XmlSchemaException
(SR.Xml_NoValidation, string.Empty), XmlSeverityType.Warning);
System\Xml\Schema\XmlSchemaParticle.cs (4)
40
throw new
XmlSchemaException
(SR.Sch_MinOccursInvalidXsd, string.Empty);
72
throw new
XmlSchemaException
(SR.Sch_MaxOccursInvalidXsd, string.Empty);
92
throw new
XmlSchemaException
(SR.Sch_MinOccursInvalidXsd, string.Empty);
107
throw new
XmlSchemaException
(SR.Sch_MaxOccursInvalidXsd, string.Empty);
System\Xml\Schema\XmlSchemaSet.cs (5)
447
SendValidationEvent(new
XmlSchemaException
(SR.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning);
519
SendValidationEvent(new
XmlSchemaException
(SR.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error);
806
throw new
XmlSchemaException
(SR.Sch_ComponentAlreadySeenForNS, targetNamespace);
836
throw new
XmlSchemaException
(SR.Sch_ComponentAlreadySeenForNS, tns);
1429
SendValidationEvent(new
XmlSchemaException
(code, qname.ToString()), XmlSeverityType.Error);
System\Xml\XmlConvert.cs (1)
485
return new
XmlSchemaException
(SR.Sch_NotNormalizedString, str);