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