24 instantiations of XmlSchemaValidationException
System.Private.Xml (24)
System\Xml\Dom\DocumentSchemaValidator.cs (2)
133
throw new
XmlSchemaValidationException
(SR.XmlDocument_NoNodeSchemaInfo, null, nodeToValidate);
148
throw new
XmlSchemaValidationException
(SR.XmlDocument_NoNodeSchemaInfo, null, nodeToValidate);
System\Xml\Schema\XmlSchemaValidator.cs (22)
2030
SendValidationEvent(new
XmlSchemaValidationException
(SR.Sch_UndeclaredId, next.Id, _sourceUriString, next.LineNo, next.LinePos), XmlSeverityType.Error);
2392
SendValidationEvent(new
XmlSchemaValidationException
(SR.Sch_MissingKey, constraints[i].constraint.name.ToString(), _sourceUriString, ks.PosLine, ks.PosCol));
2400
SendValidationEvent(new
XmlSchemaValidationException
(SR.Sch_DuplicateKey,
2419
SendValidationEvent(new
XmlSchemaValidationException
(SR.Sch_DuplicateKey,
2464
SendValidationEvent(new
XmlSchemaValidationException
(SR.Sch_UnresolvedKeyref, new string[2] { ks!.ToString(), vcs[i].constraint.name.ToString() },
2534
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_InvalidElementContentComplex, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2538
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_InvalidElementContent, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name) }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2546
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_InvalidElementContentExpectingComplex, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name), PrintExpectedElements(names, getParticles), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2550
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_InvalidElementContentExpecting, new string[] { BuildElementName(context.LocalName!, context.Namespace!), BuildElementName(name), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2558
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_InvalidElementInEmptyEx, new string[] { QNameString(context.LocalName!, context.Namespace!), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2562
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_InvalidElementInTextOnlyEx, new string[] { QNameString(context.LocalName!, context.Namespace!), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2588
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_IncompleteContentComplex, new string?[] { BuildElementName(context.LocalName!, context.Namespace!), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2591
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_IncompleteContent, BuildElementName(context.LocalName!, context.Namespace!), sourceUri, lineNo, linePos), XmlSeverityType.Error);
2598
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_IncompleteContentExpectingComplex, new string?[] { BuildElementName(context.LocalName!, context.Namespace!), PrintExpectedElements(names, getParticles), SR.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2602
SendValidationEvent(eventHandler, sender, new
XmlSchemaValidationException
(SR.Sch_IncompleteContentExpecting, new string?[] { BuildElementName(context.LocalName!, context.Namespace!), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error);
2809
SendValidationEvent(new
XmlSchemaValidationException
(code, args, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition));
2814
SendValidationEvent(new
XmlSchemaValidationException
(code, arg, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition));
2819
SendValidationEvent(new
XmlSchemaValidationException
(code, new string?[] { arg1, arg2 }, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition));
2826
SendValidationEvent(new
XmlSchemaValidationException
(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
2832
SendValidationEvent(new
XmlSchemaValidationException
(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error);
2842
SendValidationEvent(new
XmlSchemaValidationException
(e.GetRes, e.Args, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.Error);
2849
SendValidationEvent(new
XmlSchemaValidationException
(code, msg, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
10 references to XmlSchemaValidationException
netstandard (1)
netstandard.cs (1)
2371
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaValidationException
))]
System.Private.Xml (7)
System\Xml\Dom\DocumentSchemaValidator.cs (2)
790
XmlSchemaValidationException
? ex = arg.Exception as
XmlSchemaValidationException
;
System\Xml\Schema\XmlSchemaValidator.cs (3)
2835
private void SendValidationEvent(
XmlSchemaValidationException
e)
2853
private void SendValidationEvent(
XmlSchemaValidationException
e, XmlSeverityType severity)
2878
internal static void SendValidationEvent(ValidationEventHandler? eventHandler, object sender,
XmlSchemaValidationException
e, XmlSeverityType severity)
System\Xml\XPath\XPathNavigator.cs (2)
1094
XmlSchemaValidationException
? exception = args.Exception as
XmlSchemaValidationException
;
System.Xml (1)
System.Xml.cs (1)
96
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaValidationException
))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
95
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaValidationException
))]