2 types derived from XmlSchemaException
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\XmlSchemaInferenceException.cs (1)
16
public class XmlSchemaInferenceException :
XmlSchemaException
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidationException.cs (1)
16
public class XmlSchemaValidationException :
XmlSchemaException
225 instantiations of XmlSchemaException
dotnet-svcutil-lib (225)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
2821
SendValidationEvent(severity, new
XmlSchemaException
(code, arg, _ps.baseUriStr, lineNo, linePos));
FrameworkFork\Microsoft.Xml\Xml\schema\AstTree.cs (10)
571
throw new
XmlSchemaException
(ResXml.Sch_EmptyXPath, string.Empty);
593
throw new
XmlSchemaException
(ResXml.Sch_ICXpathError, xPath);
606
throw new
XmlSchemaException
(ResXml.Sch_ICXpathError, xPath);
617
throw new
XmlSchemaException
(ResXml.Sch_SelectorAttr, xPath);
628
throw new
XmlSchemaException
(ResXml.Sch_ICXpathError, xPath);
656
throw new
XmlSchemaException
(ResXml.Sch_ICXpathError, xPath);
677
throw new
XmlSchemaException
(ResXml.Sch_ICXpathError, xPath);
685
throw new
XmlSchemaException
(ResXml.Sch_ICXpathError, xPath);
689
throw new
XmlSchemaException
(ResXml.Sch_ICXpathError, xPath);
720
throw new
XmlSchemaException
(ResXml.Sch_UnresolvedPrefix, axis.Prefix);
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (7)
229
SendValidationEvent(new
XmlSchemaException
(code, source), XmlSeverityType.Error);
234
SendValidationEvent(new
XmlSchemaException
(code, msg, source), XmlSeverityType.Error);
239
SendValidationEvent(new
XmlSchemaException
(code, new string[] { msg1, msg2 }, source), XmlSeverityType.Error);
244
SendValidationEvent(new
XmlSchemaException
(code, args, innerException, source.SourceUri, source.LineNumber, source.LinePosition, source), XmlSeverityType.Error);
249
SendValidationEvent(new
XmlSchemaException
(code, new string[] { msg1, msg2 }, sourceUri, lineNumber, linePosition), XmlSeverityType.Error);
254
SendValidationEvent(new
XmlSchemaException
(code, source), severity);
264
SendValidationEvent(new
XmlSchemaException
(code, msg, source), severity);
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (8)
244
SendValidationEvent(new
XmlSchemaException
(code, args, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition));
249
SendValidationEvent(new
XmlSchemaException
(code, arg, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition));
254
SendValidationEvent(new
XmlSchemaException
(code, new string[] { arg1, arg2 }, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition));
264
SendValidationEvent(new
XmlSchemaException
(code, msg, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
269
SendValidationEvent(new
XmlSchemaException
(code, args, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
291
e = new
XmlSchemaException
(ResXml.Sch_UndeclaredEntity, name, baseUri, lineNumber, linePosition);
295
e = new
XmlSchemaException
(ResXml.Sch_UnparsedEntityRef, name, baseUri, lineNumber, linePosition);
325
XmlSchemaException e = new
XmlSchemaException
(errorResId, name, baseUriStr, lineNumber, linePosition);
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (23)
391
throw new
XmlSchemaException
(ResXml.Sch_ListFromNonatomic, string.Empty);
395
throw new
XmlSchemaException
(ResXml.Sch_ListFromNonatomic, string.Empty);
553
throw new
XmlSchemaException
(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
571
throw new
XmlSchemaException
(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
1166
return new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
1289
exception = new
XmlSchemaException
(ResXml.Sch_UnionFailedEx, s);
1329
exception = new
XmlSchemaException
(ResXml.Sch_UnionFailedEx, value.ToString());
1923
return new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
1954
return new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
1993
return new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
2764
return new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
3100
return new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
3147
throw new
XmlSchemaException
(ResXml.Sch_NotationRequired, caller);
3153
throw new
XmlSchemaException
(ResXml.Sch_NotationRequired, caller);
3773
throw new
XmlSchemaException
(string.Format(ResXml.Sch_InvalidValue, s), e);
3777
throw new
XmlSchemaException
(ResXml.Sch_InvalidValue, s);
3794
throw new
XmlSchemaException
(string.Format(ResXml.Sch_InvalidValue, s), e);
3798
throw new
XmlSchemaException
(ResXml.Sch_InvalidValue, s);
3815
throw new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
3832
throw new
XmlSchemaException
(string.Format(ResXml.Sch_InvalidValue, s), e);
3875
throw new
XmlSchemaException
(string.Format(ResXml.Sch_InvalidValue, s), e);
3919
throw new
XmlSchemaException
(string.Format(ResXml.Sch_InvalidValue, s), e);
3976
throw new
XmlSchemaException
(string.Format(ResXml.Sch_InvalidValue, s), e);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (5)
433
SendValidationEvent(XmlSeverityType.Error, new
XmlSchemaException
(ResXml.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos));
834
SendValidationEvent(XmlSeverityType.Error, new
XmlSchemaException
(ResXml.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos));
873
SendValidationEvent(XmlSeverityType.Error, new
XmlSchemaException
(ResXml.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos));
3475
SendValidationEvent(severity, new
XmlSchemaException
(code, arg, BaseUriStr, (int)LineNo, (int)LinePos + (pos - _curPos)));
3481
SendValidationEvent(severity, new
XmlSchemaException
(code, arg, BaseUriStr, (int)LineNo, (int)LinePos));
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (4)
491
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos));
556
XmlSchemaException e = new
XmlSchemaException
(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString());
605
XmlSchemaException e = new
XmlSchemaException
(ResXml.Sch_EnumerationValue, typedValue.ToString(), baseUriStr, attdef.ValueLineNumber, attdef.ValueLinePosition);
621
XmlSchemaException e = new
XmlSchemaException
(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (89)
63
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
70
throw new
XmlSchemaException
(ResXml.Sch_LengthGtBaseLength, facet);
78
throw new
XmlSchemaException
(ResXml.Sch_MaxMinLengthBaseLength, facet);
86
throw new
XmlSchemaException
(ResXml.Sch_MaxMinLengthBaseLength, facet);
102
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
109
throw new
XmlSchemaException
(ResXml.Sch_MinLengthGtBaseMinLength, facet);
116
throw new
XmlSchemaException
(ResXml.Sch_MaxMinLengthBaseLength, facet);
132
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
139
throw new
XmlSchemaException
(ResXml.Sch_MaxLengthGtBaseMaxLength, facet);
146
throw new
XmlSchemaException
(ResXml.Sch_MaxMinLengthBaseLength, facet);
200
throw new
XmlSchemaException
(ResXml.Sch_InvalidWhiteSpace, facet.Value, facet);
206
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
223
throw new
XmlSchemaException
(ResXml.Sch_WhiteSpaceRestriction1, facet);
229
throw new
XmlSchemaException
(ResXml.Sch_WhiteSpaceRestriction2, facet);
244
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
261
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
278
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
295
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
313
throw new
XmlSchemaException
(ResXml.Sch_FacetBaseFixed, facet);
320
throw new
XmlSchemaException
(ResXml.Sch_TotalDigitsMismatch, string.Empty);
334
throw new
XmlSchemaException
(ResXml.Sch_FractionDigitsFacetInvalid, ResXml.Sch_FractionDigitsNotOnDecimal, facet);
340
throw new
XmlSchemaException
(ResXml.Sch_TotalDigitsMismatch, string.Empty);
370
throw new
XmlSchemaException
(ResXml.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet);
385
throw new
XmlSchemaException
(ResXml.Sch_MaxInclusiveMismatch, string.Empty);
392
throw new
XmlSchemaException
(ResXml.Sch_MaxIncExlMismatch, string.Empty);
402
throw new
XmlSchemaException
(ResXml.Sch_MaxExclusiveMismatch, string.Empty);
409
throw new
XmlSchemaException
(ResXml.Sch_MaxExlIncMismatch, string.Empty);
419
throw new
XmlSchemaException
(ResXml.Sch_MinInclusiveMismatch, string.Empty);
426
throw new
XmlSchemaException
(ResXml.Sch_MinIncExlMismatch, string.Empty);
433
throw new
XmlSchemaException
(ResXml.Sch_MinIncMaxExlMismatch, string.Empty);
443
throw new
XmlSchemaException
(ResXml.Sch_MinExclusiveMismatch, string.Empty);
450
throw new
XmlSchemaException
(ResXml.Sch_MinExlIncMismatch, string.Empty);
457
throw new
XmlSchemaException
(ResXml.Sch_MinExlMaxExlMismatch, string.Empty);
477
throw new
XmlSchemaException
(ResXml.Sch_MaxInclusiveExclusive, string.Empty);
484
throw new
XmlSchemaException
(ResXml.Sch_MinInclusiveExclusive, string.Empty);
491
throw new
XmlSchemaException
(ResXml.Sch_LengthAndMinMax, string.Empty);
504
throw new
XmlSchemaException
(ResXml.Sch_MinLengthGtMaxLength, string.Empty);
516
throw new
XmlSchemaException
(ResXml.Sch_MinInclusiveGtMaxInclusive, string.Empty);
526
throw new
XmlSchemaException
(ResXml.Sch_MinInclusiveGtMaxExclusive, string.Empty);
536
throw new
XmlSchemaException
(ResXml.Sch_MinExclusiveGtMaxExclusive, string.Empty);
546
throw new
XmlSchemaException
(ResXml.Sch_MinExclusiveGtMaxInclusive, string.Empty);
553
throw new
XmlSchemaException
(ResXml.Sch_FractionDigitsGtTotalDigits, string.Empty);
676
throw new
XmlSchemaException
(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
750
throw new
XmlSchemaException
(errorCode, _datatype.TypeCodeString, facet);
758
throw new
XmlSchemaException
(errorCode, facet);
885
return new
XmlSchemaException
(ResXml.Sch_PatternConstraintFailed, string.Empty);
909
throw new
XmlSchemaException
(ResXml.Sch_InvalidFacet, facet);
963
throw new
XmlSchemaException
(ResXml.Sch_UnknownFacet, facet);
1029
return new
XmlSchemaException
(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty);
1037
return new
XmlSchemaException
(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty);
1045
return new
XmlSchemaException
(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty);
1053
return new
XmlSchemaException
(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty);
1060
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1121
return new
XmlSchemaException
(ResXml.Sch_TotalDigitsConstraintFailed, string.Empty);
1125
return new
XmlSchemaException
(ResXml.Sch_FractionDigitsConstraintFailed, string.Empty);
1150
return new
XmlSchemaException
(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty);
1157
return new
XmlSchemaException
(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty);
1165
return new
XmlSchemaException
(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty);
1173
return new
XmlSchemaException
(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty);
1180
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1225
return new
XmlSchemaException
(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty);
1233
return new
XmlSchemaException
(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty);
1241
return new
XmlSchemaException
(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty);
1249
return new
XmlSchemaException
(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty);
1256
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1296
return new
XmlSchemaException
(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty);
1304
return new
XmlSchemaException
(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty);
1312
return new
XmlSchemaException
(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty);
1320
return new
XmlSchemaException
(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty);
1327
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1396
return new
XmlSchemaException
(ResXml.Sch_LengthConstraintFailed, string.Empty);
1403
return new
XmlSchemaException
(ResXml.Sch_MinLengthConstraintFailed, string.Empty);
1410
return new
XmlSchemaException
(ResXml.Sch_MaxLengthConstraintFailed, string.Empty);
1417
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1479
return new
XmlSchemaException
(ResXml.Sch_EmptyAttributeValue, string.Empty);
1483
return new
XmlSchemaException
(ResXml.Sch_InvalidLanguageId, string.Empty);
1528
return new
XmlSchemaException
(ResXml.Sch_LengthConstraintFailed, string.Empty);
1535
return new
XmlSchemaException
(ResXml.Sch_MinLengthConstraintFailed, string.Empty);
1542
return new
XmlSchemaException
(ResXml.Sch_MaxLengthConstraintFailed, string.Empty);
1549
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1597
return new
XmlSchemaException
(ResXml.Sch_LengthConstraintFailed, string.Empty);
1604
return new
XmlSchemaException
(ResXml.Sch_MinLengthConstraintFailed, string.Empty);
1611
return new
XmlSchemaException
(ResXml.Sch_MaxLengthConstraintFailed, string.Empty);
1618
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1660
return new
XmlSchemaException
(ResXml.Sch_LengthConstraintFailed, string.Empty);
1668
return new
XmlSchemaException
(ResXml.Sch_MinLengthConstraintFailed, string.Empty);
1676
return new
XmlSchemaException
(ResXml.Sch_MaxLengthConstraintFailed, string.Empty);
1684
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
1714
return new
XmlSchemaException
(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (1)
83
throw new
XmlSchemaException
(code, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition);
FrameworkFork\Microsoft.Xml\Xml\schema\ParserAsync.cs (1)
48
throw new
XmlSchemaException
(code, reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
349
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning);
418
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_InvalidIncludeLocation, null, eInner, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning);
428
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaAttDef.cs (1)
220
validationEventHandling.SendEvent(new
XmlSchemaException
(ResXml.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (19)
513
throw new
XmlSchemaException
(ResXml.Sch_TypeCircularRef, simpleType);
547
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, list.ItemTypeName.ToString(), simpleType);
573
throw new
XmlSchemaException
(ResXml.Sch_InvalidSimpleTypeRestriction, restriction.BaseTypeName.ToString(), simpleType);
587
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, restriction.BaseTypeName.ToString(), simpleType);
652
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, mainMemberTypes[i].ToString(), simpleType);
2070
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredAttribute, xa.RefName.ToString(), xa);
2075
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidAttribute, xa.RefName.ToString(), xa);
2084
throw new
XmlSchemaException
(ResXml.Sch_FixedDefaultInRef, xa.RefName.ToString(), xa);
2090
throw new
XmlSchemaException
(ResXml.Sch_FixedInRef, xa.RefName.ToString(), xa);
2133
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, xa.SchemaTypeName.ToString(), xa);
2222
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi);
2227
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi);
2232
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidCardin, xi.QualifiedName.ToString(), xi);
2237
throw new
XmlSchemaException
(ResXml.Sch_ReftoKeyref, xi.QualifiedName.ToString(), xi);
2278
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredElement, xe.RefName.ToString(), xe);
2283
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidElement, xe.RefName.ToString(), xe);
2299
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredType, xe.SchemaTypeName.ToString(), xe);
2307
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name.ToString(), xe);
2392
throw new
XmlSchemaException
(ResXml.Sch_ElementCannotHaveValue, xe);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
245
SendValidationEventNoThrow(new
XmlSchemaException
(ResXml.Sch_CannotLoadSchema, new string[] { schemaLocation, e.Message }, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (2)
243
throw new
XmlSchemaException
(ResXml.Sch_MissRequiredAttribute, attdef.Name.ToString());
247
throw new
XmlSchemaException
(ResXml.Sch_StandAlone, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (5)
212
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredAttribute, qname.ToString());
216
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredAttribute, qname.ToString());
313
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredAttribute, qname.ToString());
317
throw new
XmlSchemaException
(ResXml.Sch_ProhibitedAttribute, qname.ToString());
346
eventhandler(this, new ValidationEventArgs(new
XmlSchemaException
(ResXml.Sch_MixSchemaTypes, string.Empty)));
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (19)
594
throw new
XmlSchemaException
(ResXml.Sch_TypeCircularRef, simpleType);
628
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, list.ItemTypeName.ToString(), list);
657
throw new
XmlSchemaException
(ResXml.Sch_InvalidSimpleTypeRestriction, restriction.BaseTypeName.ToString(), simpleType);
672
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, restriction.BaseTypeName.ToString(), restriction);
737
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, mainMemberTypes[i].ToString(), mainUnion);
2488
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredAttribute, xa.RefName.ToString(), xa);
2493
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidAttribute, xa.RefName.ToString(), xa);
2508
throw new
XmlSchemaException
(ResXml.Sch_FixedDefaultInRef, xa.RefName.ToString(), xa);
2515
throw new
XmlSchemaException
(ResXml.Sch_FixedInRef, xa.RefName.ToString(), xa);
2543
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredSimpleType, xa.SchemaTypeName.ToString(), xa);
2653
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi);
2658
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi);
2663
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidCardin, xi.QualifiedName.ToString(), xi);
2668
throw new
XmlSchemaException
(ResXml.Sch_ReftoKeyref, xi.QualifiedName.ToString(), xi);
2709
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredElement, xe.RefName.ToString(), xe);
2714
throw new
XmlSchemaException
(ResXml.Sch_RefInvalidElement, xe.RefName.ToString(), xe);
2730
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredType, xe.SchemaTypeName.ToString(), xe);
2738
throw new
XmlSchemaException
(ResXml.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name.ToString(), xe);
2835
throw new
XmlSchemaException
(ResXml.Sch_ElementCannotHaveValue, xe);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
1807
SendValidationEvent(new
XmlSchemaException
(code, args, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
1817
SendValidationEvent(new
XmlSchemaException
(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (4)
450
SendValidationEvent(new
XmlSchemaException
(ResXml.Xml_NoValidation, string.Empty), XmlSeverityType.Warning);
604
XmlSchemaException e = new
XmlSchemaException
(ResXml.Sch_EnumerationValue, typedValue.ToString(), baseUri, lineNo, linePos);
624
XmlSchemaException e = new
XmlSchemaException
(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString(), baseUri, lineNo, linePos);
685
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (4)
53
throw new
XmlSchemaException
(ResXml.Sch_MinOccursInvalidXsd, string.Empty);
89
throw new
XmlSchemaException
(ResXml.Sch_MaxOccursInvalidXsd, string.Empty);
113
throw new
XmlSchemaException
(ResXml.Sch_MinOccursInvalidXsd, string.Empty);
132
throw new
XmlSchemaException
(ResXml.Sch_MaxOccursInvalidXsd, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (6)
560
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning);
645
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error);
957
throw new
XmlSchemaException
(ResXml.Sch_ComponentAlreadySeenForNS, targetNamespace);
991
throw new
XmlSchemaException
(ResXml.Sch_ComponentAlreadySeenForNS, tns);
1424
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error);
1587
SendValidationEvent(new
XmlSchemaException
(code, qname.ToString()), XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (3)
2566
SendValidationEvent(new
XmlSchemaException
(code, new string[] { arg0, arg1, arg2 }, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition));
2571
SendValidationEvent(new
XmlSchemaException
(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition));
2576
SendValidationEvent(new
XmlSchemaException
(code, args, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (5)
833
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos));
1093
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_MissingKey, constraints[i].constraint.name.ToString(), reader.BaseURI, ks.PosLine, ks.PosCol));
1100
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_DuplicateKey,
1117
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_DuplicateKey,
1160
SendValidationEvent(new
XmlSchemaException
(ResXml.Sch_UnresolvedKeyref, new string[2] { ks.ToString(), vcs[i].constraint.name.ToString() },
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
537
throw new
XmlSchemaException
(ResXml.Sch_NotNormalizedString, str);
546
return new
XmlSchemaException
(ResXml.Sch_NotNormalizedString, str);
69 references to XmlSchemaException
dotnet-svcutil-lib (69)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
2824
private void SendValidationEvent(XmlSeverityType severity,
XmlSchemaException
exception)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (1)
63
_eventHandler(_reader, new ValidationEventArgs((
XmlSchemaException
)exception, severity));
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (3)
257
protected void SendValidationEvent(
XmlSchemaException
e)
267
protected void SendValidationEvent(
XmlSchemaException
e, XmlSeverityType severity)
283
protected void SendValidationEventNoThrow(
XmlSchemaException
e, XmlSeverityType severity)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (4)
257
protected void SendValidationEvent(
XmlSchemaException
e)
272
protected void SendValidationEvent(
XmlSchemaException
e, XmlSeverityType severity)
287
XmlSchemaException
e = null;
325
XmlSchemaException
e = new XmlSchemaException(errorResId, name, baseUriStr, lineNumber, linePosition);
FrameworkFork\Microsoft.Xml\Xml\schema\CompiledIdentityConstraint.cs (2)
60
catch (
XmlSchemaException
e)
74
catch (
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (4)
3826
catch (
XmlSchemaException
e)
3869
catch (
XmlSchemaException
e)
3913
catch (
XmlSchemaException
e)
3970
catch (
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (1)
3484
private void SendValidationEvent(XmlSeverityType severity,
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (6)
202
catch (
XmlSchemaException
e)
220
catch (
XmlSchemaException
e)
398
catch (
XmlSchemaException
)
556
XmlSchemaException
e = new XmlSchemaException(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString());
605
XmlSchemaException
e = new XmlSchemaException(ResXml.Sch_EnumerationValue, typedValue.ToString(), baseUriStr, attdef.ValueLineNumber, attdef.ValueLinePosition);
621
XmlSchemaException
e = new XmlSchemaException(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
412
catch (
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (5)
601
catch (
XmlSchemaException
e)
902
catch (
XmlSchemaException
e)
2182
catch (
XmlSchemaException
e)
2242
catch (
XmlSchemaException
e)
2412
catch (
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
243
catch (
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (5)
686
catch (
XmlSchemaException
e)
980
catch (
XmlSchemaException
e)
2563
catch (
XmlSchemaException
e)
2673
catch (
XmlSchemaException
e)
2855
catch (
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\ValidationEventArgs.cs (4)
17
private
XmlSchemaException
_ex;
20
internal ValidationEventArgs(
XmlSchemaException
ex) : base()
26
internal ValidationEventArgs(
XmlSchemaException
ex, XmlSeverityType severity) : base()
39
public
XmlSchemaException
Exception
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (1)
1820
private void SendValidationEvent(
XmlSchemaException
e, XmlSeverityType severity)
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (6)
288
catch (
XmlSchemaException
e)
313
catch (
XmlSchemaException
e)
352
catch (
XmlSchemaException
e)
539
catch (
XmlSchemaException
)
604
XmlSchemaException
e = new XmlSchemaException(ResXml.Sch_EnumerationValue, typedValue.ToString(), baseUri, lineNo, linePos);
624
XmlSchemaException
e = new XmlSchemaException(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString(), baseUri, lineNo, linePos);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (1)
107
catch (
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (2)
155
catch (
XmlSchemaException
e)
399
private void SendValidationEvent(
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (2)
1251
catch (
XmlSchemaException
e)
1625
private void SendValidationEvent(
XmlSchemaException
e, XmlSeverityType severity)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (5)
357
catch (
XmlSchemaException
e)
1319
catch (
XmlSchemaException
schemaException)
1876
catch (
XmlSchemaException
e)
1902
catch (
XmlSchemaException
e)
2850
private void SendValidationEvent(
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (5)
743
catch (
XmlSchemaException
e)
1520
catch (
XmlSchemaException
e)
2313
catch (
XmlSchemaException
e)
2579
private void SendValidationEvent(
XmlSchemaException
e, XmlSeverityType severity)
2593
private void SendValidationEvent(
XmlSchemaException
e)
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (5)
165
catch (
XmlSchemaException
e)
531
catch (
XmlSchemaException
e)
563
catch (
XmlSchemaException
e)
612
catch (
XmlSchemaException
e)
755
catch (
XmlSchemaException
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (3)
396
catch (
XmlSchemaException
e)
790
catch (
XmlSchemaException
e)
797
internal static Exception CreateValidationException(
XmlSchemaException
exception, string message)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
147
XmlSchemaException
ex = args.Exception;