2 types derived from XmlSchemaException
System.Private.Xml (2)
System\Xml\Schema\Inference\XmlSchemaInferenceException.cs (1)
17public class XmlSchemaInferenceException : XmlSchemaException
System\Xml\Schema\XmlSchemaValidationException.cs (1)
16public class XmlSchemaValidationException : XmlSchemaException
227 instantiations of XmlSchemaException
System.Private.Xml (227)
System\Xml\Core\XmlTextReaderImpl.cs (1)
2767SendValidationEvent(severity, new XmlSchemaException(code, arg, _ps.baseUriStr, lineNo, linePos));
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\BaseProcessor.cs (7)
215SendValidationEvent(new XmlSchemaException(code, source), XmlSeverityType.Error); 220SendValidationEvent(new XmlSchemaException(code, msg, source), XmlSeverityType.Error); 225SendValidationEvent(new XmlSchemaException(code, new string?[] { msg1, msg2 }, source), XmlSeverityType.Error); 230SendValidationEvent(new XmlSchemaException(code, args, innerException, source.SourceUri, source.LineNumber, source.LinePosition, source), XmlSeverityType.Error); 235SendValidationEvent(new XmlSchemaException(code, new string?[] { msg1, msg2 }, sourceUri, lineNumber, linePosition), XmlSeverityType.Error); 240SendValidationEvent(new XmlSchemaException(code, source), severity); 250SendValidationEvent(new XmlSchemaException(code, msg, source), severity);
System\Xml\Schema\BaseValidator.cs (7)
257SendValidationEvent(new XmlSchemaException(code, args, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition)); 262SendValidationEvent(new XmlSchemaException(code, arg, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition)); 272SendValidationEvent(new XmlSchemaException(code, msg, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity); 277SendValidationEvent(new XmlSchemaException(code, args, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity); 299e = new XmlSchemaException(SR.Sch_UndeclaredEntity, name, baseUri, lineNumber, linePosition); 303e = new XmlSchemaException(SR.Sch_UnparsedEntityRef, name, baseUri, lineNumber, linePosition); 334XmlSchemaException e = new XmlSchemaException(errorResId, name, baseUriStr, lineNumber, linePosition);
System\Xml\Schema\DataTypeImplementation.cs (23)
387throw new XmlSchemaException(SR.Sch_ListFromNonatomic, string.Empty); 391throw new XmlSchemaException(SR.Sch_ListFromNonatomic, string.Empty); 535throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null); 556throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null); 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); 3087throw new XmlSchemaException(SR.Sch_NotationRequired, caller); 3093throw new XmlSchemaException(SR.Sch_NotationRequired, caller); 3697throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3702throw new XmlSchemaException(SR.Sch_InvalidValue, s); 3719throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3724throw new XmlSchemaException(SR.Sch_InvalidValue, s); 3738throw new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 3753throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3793throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3836throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e); 3889throw new XmlSchemaException(SR.Format(SR.Sch_InvalidValue, s), e);
System\Xml\Schema\DtdParser.cs (5)
421SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos)); 822SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos)); 861SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos)); 3399SendValidationEvent(severity, new XmlSchemaException(code, arg, BaseUriStr, (int)LineNo, (int)LinePos + (pos - _curPos))); 3405SendValidationEvent(severity, new XmlSchemaException(code, arg, BaseUriStr, (int)LineNo, (int)LinePos));
System\Xml\Schema\DtdParserAsync.cs (3)
63SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos)); 466SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos)); 505SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(SR.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos));
System\Xml\Schema\DtdValidator.cs (4)
490SendValidationEvent(new XmlSchemaException(SR.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos)); 554XmlSchemaException e = new XmlSchemaException(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString()); 600XmlSchemaException e = new XmlSchemaException(SR.Sch_EnumerationValue, typedValue!.ToString(), baseUriStr, attdef.ValueLineNumber, attdef.ValueLinePosition); 615XmlSchemaException e = new XmlSchemaException(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString());
System\Xml\Schema\FacetChecker.cs (90)
63throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 70throw new XmlSchemaException(SR.Sch_LengthGtBaseLength, facet); 78throw new XmlSchemaException(SR.Sch_MaxMinLengthBaseLength, facet); 86throw new XmlSchemaException(SR.Sch_MaxMinLengthBaseLength, facet); 102throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 109throw new XmlSchemaException(SR.Sch_MinLengthGtBaseMinLength, facet); 116throw new XmlSchemaException(SR.Sch_MaxMinLengthBaseLength, facet); 132throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 139throw new XmlSchemaException(SR.Sch_MaxLengthGtBaseMaxLength, facet); 146throw new XmlSchemaException(SR.Sch_MaxMinLengthBaseLength, facet); 197throw new XmlSchemaException(SR.Sch_InvalidWhiteSpace, facet.Value, facet); 203throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 220throw new XmlSchemaException(SR.Sch_WhiteSpaceRestriction1, facet); 226throw new XmlSchemaException(SR.Sch_WhiteSpaceRestriction2, facet); 241throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 258throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 275throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 292throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 310throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 317throw new XmlSchemaException(SR.Sch_TotalDigitsMismatch, string.Empty); 331throw new XmlSchemaException(SR.Sch_FractionDigitsFacetInvalid, SR.Sch_FractionDigitsNotOnDecimal, facet); 337throw new XmlSchemaException(SR.Sch_FacetBaseFixed, facet); 344throw new XmlSchemaException(SR.Sch_FractionDigitsMismatch, string.Empty); 371throw new XmlSchemaException(SR.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet!.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet); 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); 673throw new XmlSchemaException(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet); 746throw new XmlSchemaException(errorCode, _datatype.TypeCodeString, facet); 754throw new XmlSchemaException(errorCode, facet); 877return new XmlSchemaException(SR.Sch_PatternConstraintFailed, string.Empty); 902throw new XmlSchemaException(SR.Sch_InvalidFacet, facet); 956throw new XmlSchemaException(SR.Sch_UnknownFacet, facet); 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\Parser.cs (1)
78throw new XmlSchemaException(code, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition);
System\Xml\Schema\ParserAsync.cs (1)
39throw new XmlSchemaException(code, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition);
System\Xml\Schema\Preprocessor.cs (3)
329SendValidationEvent(new XmlSchemaException(SR.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 399SendValidationEvent(new XmlSchemaException(SR.Sch_InvalidIncludeLocation, null, eInner, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 409SendValidationEvent(new XmlSchemaException(SR.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning);
System\Xml\Schema\SchemaAttDef.cs (1)
201validationEventHandling.SendEvent(new XmlSchemaException(SR.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
System\Xml\Schema\SchemaCollectionCompiler.cs (19)
523throw new XmlSchemaException(SR.Sch_TypeCircularRef, simpleType); 556throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, list.ItemTypeName.ToString(), simpleType); 581throw new XmlSchemaException(SR.Sch_InvalidSimpleTypeRestriction, restriction.BaseTypeName.ToString(), simpleType); 595throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, restriction.BaseTypeName.ToString(), simpleType); 661throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, mainMemberTypes[i].ToString(), simpleType); 1992throw new XmlSchemaException(SR.Sch_UndeclaredAttribute, xa.RefName.ToString(), xa); 1997throw new XmlSchemaException(SR.Sch_RefInvalidAttribute, xa.RefName.ToString(), xa); 2006throw new XmlSchemaException(SR.Sch_FixedDefaultInRef, xa.RefName.ToString(), xa); 2012throw new XmlSchemaException(SR.Sch_FixedInRef, xa.RefName.ToString(), xa); 2055throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, xa.SchemaTypeName.ToString(), xa); 2141throw new XmlSchemaException(SR.Sch_UndeclaredIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2146throw new XmlSchemaException(SR.Sch_RefInvalidIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2151throw new XmlSchemaException(SR.Sch_RefInvalidCardin, xi.QualifiedName.ToString(), xi); 2156throw new XmlSchemaException(SR.Sch_ReftoKeyref, xi.QualifiedName.ToString(), xi); 2197throw new XmlSchemaException(SR.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 2202throw new XmlSchemaException(SR.Sch_RefInvalidElement, xe.RefName.ToString(), xe); 2218throw new XmlSchemaException(SR.Sch_UndeclaredType, xe.SchemaTypeName.ToString(), xe); 2226throw new XmlSchemaException(SR.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name, xe); 2307throw new XmlSchemaException(SR.Sch_ElementCannotHaveValue, xe);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
240SendValidationEventNoThrow(new XmlSchemaException(SR.Sch_CannotLoadSchema, new string[] { schemaLocation, e.Message }, e.SourceUri, e.LineNumber, e.LinePosition), 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\SchemaSetCompiler.cs (19)
605throw new XmlSchemaException(SR.Sch_TypeCircularRef, simpleType); 641throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, list.ItemTypeName.ToString(), list); 670throw new XmlSchemaException(SR.Sch_InvalidSimpleTypeRestriction, restriction.BaseTypeName.ToString(), simpleType); 685throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, restriction.BaseTypeName.ToString(), restriction); 751throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, mainMemberTypes[i].ToString(), mainUnion); 2433throw new XmlSchemaException(SR.Sch_UndeclaredAttribute, xa.RefName.ToString(), xa); 2438throw new XmlSchemaException(SR.Sch_RefInvalidAttribute, xa.RefName.ToString(), xa); 2453throw new XmlSchemaException(SR.Sch_FixedDefaultInRef, xa.RefName.ToString(), xa); 2460throw new XmlSchemaException(SR.Sch_FixedInRef, xa.RefName.ToString(), xa); 2488throw new XmlSchemaException(SR.Sch_UndeclaredSimpleType, xa.SchemaTypeName.ToString(), xa); 2597throw new XmlSchemaException(SR.Sch_UndeclaredIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2603throw new XmlSchemaException(SR.Sch_RefInvalidIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2609throw new XmlSchemaException(SR.Sch_RefInvalidCardin, xi.QualifiedName.ToString(), xi); 2615throw new XmlSchemaException(SR.Sch_ReftoKeyref, xi.QualifiedName.ToString(), xi); 2656throw new XmlSchemaException(SR.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 2661throw new XmlSchemaException(SR.Sch_RefInvalidElement, xe.RefName.ToString(), xe); 2677throw new XmlSchemaException(SR.Sch_UndeclaredType, xe.SchemaTypeName.ToString(), xe); 2685throw new XmlSchemaException(SR.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name, xe); 2777throw new XmlSchemaException(SR.Sch_ElementCannotHaveValue, xe);
System\Xml\Schema\XdrBuilder.cs (2)
1796SendValidationEvent(new XmlSchemaException(code, args, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity); 1806SendValidationEvent(new XmlSchemaException(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error);
System\Xml\Schema\XdrValidator.cs (4)
450SendValidationEvent(new XmlSchemaException(SR.Xml_NoValidation, string.Empty), XmlSeverityType.Warning); 605XmlSchemaException e = new XmlSchemaException(SR.Sch_EnumerationValue, typedValue.ToString(), baseUri, lineNo, linePos); 624XmlSchemaException e = new XmlSchemaException(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString(), baseUri, lineNo, linePos); 683SendValidationEvent(new XmlSchemaException(SR.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos));
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 (6)
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); 1261SendValidationEvent(new XmlSchemaException(SR.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error); 1429SendValidationEvent(new XmlSchemaException(code, qname.ToString()), XmlSeverityType.Error);
System\Xml\Schema\XsdBuilder.cs (3)
2561SendValidationEvent(new XmlSchemaException(code, new string?[] { arg0, arg1, arg2 }, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition)); 2566SendValidationEvent(new XmlSchemaException(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition)); 2571SendValidationEvent(new XmlSchemaException(code, args, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
System\Xml\Schema\XsdValidator.cs (5)
815SendValidationEvent(new XmlSchemaException(SR.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos)); 1076SendValidationEvent(new XmlSchemaException(SR.Sch_MissingKey, constraints[i].constraint.name.ToString(), reader.BaseURI, ks.PosLine, ks.PosCol)); 1083SendValidationEvent(new XmlSchemaException(SR.Sch_DuplicateKey, 1100SendValidationEvent(new XmlSchemaException(SR.Sch_DuplicateKey, 1143SendValidationEvent(new XmlSchemaException(SR.Sch_UnresolvedKeyref, new string[2] { ks!.ToString(), vcs[i].constraint.name.ToString() },
System\Xml\XmlConvert.cs (1)
485return new XmlSchemaException(SR.Sch_NotNormalizedString, str);
102 references to XmlSchemaException
Microsoft.Build (3)
ExceptionHandling.cs (3)
181|| e is XmlSchemaException 202var schemaException = e as XmlSchemaException;
Microsoft.Build.Engine.OM.UnitTests (3)
ExceptionHandling.cs (3)
181|| e is XmlSchemaException 202var schemaException = e as XmlSchemaException;
Microsoft.Build.Tasks.Core (4)
BootstrapperUtil\BootstrapperBuilder.cs (1)
857catch (System.Xml.Schema.XmlSchemaException ex)
ExceptionHandling.cs (3)
181|| e is XmlSchemaException 202var schemaException = e as XmlSchemaException;
Microsoft.Build.Utilities.Core (3)
ExceptionHandling.cs (3)
181|| e is XmlSchemaException 202var schemaException = e as XmlSchemaException;
Microsoft.DotNet.XliffTasks (1)
Model\XlfDocument.cs (1)
294public void Validate(Action<XmlSchemaException> validationErrorHandler)
Microsoft.DotNet.XliffTasks.Tests (7)
XlfDocumentTests.cs (7)
568List<XmlSchemaException> validationErrors = GetValidationErrors(document); 578List<XmlSchemaException> validationErrors = GetValidationErrors(document); 600List<XmlSchemaException> validationErrors = GetValidationErrors(document); 603new Action<XmlSchemaException>[] 609private static List<XmlSchemaException> GetValidationErrors(XlfDocument document) 611List<XmlSchemaException> validationErrors = new(); 612void exceptionHandler(XmlSchemaException e) => validationErrors.Add(e);
MSBuild (3)
ExceptionHandling.cs (3)
181|| e is XmlSchemaException 202var schemaException = e as XmlSchemaException;
MSBuildTaskHost (3)
ExceptionHandling.cs (3)
181|| e is XmlSchemaException 202var schemaException = e as XmlSchemaException;
netstandard (1)
netstandard.cs (1)
2325[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaException))]
System.Private.Xml (71)
System\Xml\Core\XmlTextReaderImpl.cs (1)
2770private void SendValidationEvent(XmlSeverityType severity, XmlSchemaException exception)
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
58_eventHandler(_reader, new ValidationEventArgs((XmlSchemaException)exception, severity));
System\Xml\Schema\BaseProcessor.cs (3)
243protected void SendValidationEvent(XmlSchemaException e) 253protected void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) 269protected void SendValidationEventNoThrow(XmlSchemaException e, XmlSeverityType severity)
System\Xml\Schema\BaseValidator.cs (4)
265protected void SendValidationEvent(XmlSchemaException e) 280protected void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) 295XmlSchemaException? e = null; 334XmlSchemaException e = new XmlSchemaException(errorResId, name, baseUriStr, lineNumber, linePosition);
System\Xml\Schema\CompiledidEntityConstraint.cs (2)
55catch (XmlSchemaException e) 69catch (XmlSchemaException e)
System\Xml\Schema\DataTypeImplementation.cs (4)
3747catch (XmlSchemaException) 3787catch (XmlSchemaException) 3830catch (XmlSchemaException) 3883catch (XmlSchemaException)
System\Xml\Schema\DtdParser.cs (1)
3408private void SendValidationEvent(XmlSeverityType severity, XmlSchemaException e)
System\Xml\Schema\DtdValidator.cs (8)
205catch (XmlSchemaException e) 223catch (XmlSchemaException e) 401catch (XmlSchemaException) 546catch (XmlSchemaException) 554XmlSchemaException e = new XmlSchemaException(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString()); 600XmlSchemaException e = new XmlSchemaException(SR.Sch_EnumerationValue, typedValue!.ToString(), baseUriStr, attdef.ValueLineNumber, attdef.ValueLinePosition); 607catch (XmlSchemaException) 615XmlSchemaException e = new XmlSchemaException(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString());
System\Xml\Schema\Preprocessor.cs (1)
393catch (XmlSchemaException e)
System\Xml\Schema\SchemaCollectionCompiler.cs (5)
610catch (XmlSchemaException e) 911catch (XmlSchemaException e) 2101catch (XmlSchemaException e) 2161catch (XmlSchemaException e) 2328catch (XmlSchemaException e)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
238catch (XmlSchemaException e)
System\Xml\Schema\SchemaSetCompiler.cs (5)
699catch (XmlSchemaException e) 994catch (XmlSchemaException e) 2505catch (XmlSchemaException e) 2620catch (XmlSchemaException e) 2797catch (XmlSchemaException e)
System\Xml\Schema\ValidationEventArgs.cs (4)
12private readonly XmlSchemaException _ex; 15internal ValidationEventArgs(XmlSchemaException ex) : base() 21internal ValidationEventArgs(XmlSchemaException ex, XmlSeverityType severity) : base() 32public XmlSchemaException Exception
System\Xml\Schema\XdrBuilder.cs (1)
1809private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
System\Xml\Schema\XdrValidator.cs (7)
290catch (XmlSchemaException e) 316catch (XmlSchemaException e) 354catch (XmlSchemaException e) 540catch (XmlSchemaException) 605XmlSchemaException e = new XmlSchemaException(SR.Sch_EnumerationValue, typedValue.ToString(), baseUri, lineNo, linePos); 619catch (XmlSchemaException) 624XmlSchemaException e = new XmlSchemaException(SR.Sch_AttributeDefaultDataType, attdef.Name.ToString(), baseUri, lineNo, linePos);
System\Xml\Schema\XmlSchema.cs (1)
80catch (XmlSchemaException e)
System\Xml\Schema\XmlSchemaCollection.cs (2)
140catch (XmlSchemaException e) 350private void SendValidationEvent(XmlSchemaException e)
System\Xml\Schema\XmlSchemaSet.cs (2)
1094catch (XmlSchemaException e) 1455private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
System\Xml\Schema\XmlSchemaValidator.cs (5)
345catch (XmlSchemaException e) 1292catch (XmlSchemaException schemaException) 1855catch (XmlSchemaException e) 1878catch (XmlSchemaException e) 2840private void SendValidationEvent(XmlSchemaException e)
System\Xml\Schema\XsdBuilder.cs (5)
738catch (XmlSchemaException e) 1513catch (XmlSchemaException e) 2308catch (XmlSchemaException e) 2574private void SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) 2588private void SendValidationEvent(XmlSchemaException e)
System\Xml\Schema\XsdValidator.cs (5)
162catch (XmlSchemaException e) 523catch (XmlSchemaException e) 555catch (XmlSchemaException e) 601catch (XmlSchemaException e) 739catch (XmlSchemaException)
System\Xml\Serialization\XmlSchemas.cs (3)
292catch (XmlSchemaException e) 684catch (XmlSchemaException e) 691internal static Exception CreateValidationException(XmlSchemaException exception, string message)
System.Private.Xml.Linq (1)
System\Xml\Schema\XNodeValidator.cs (1)
112catch (XmlSchemaException)
System.Xml (1)
System.Xml.cs (1)
50[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaException))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
49[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaException))]