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