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