105 references to Error
Microsoft.Build.Tasks.Core (1)
BootstrapperUtil\xmlvalidationresults.cs (1)
38
if (e.Severity == System.Xml.Schema.XmlSeverityType.
Error
)
System.Private.Xml (103)
System\Xml\Core\XmlTextReaderImpl.cs (3)
2516
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, null, _ps.LineNo, _ps.LinePos);
4483
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_StandAloneNormalization, attr.GetNameWPrefix(_nameTable), attr.LineNo, attr.LinePos);
4514
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_UnSpecifiedDefaultAttributeInExternalStandalone, qname, _curNode.LineNo, _curNode.LinePos);
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
788
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, null, _ps.LineNo, _ps.LinePos);
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
60
else if (_reader._validationType != ValidationType.None && severity == XmlSeverityType.
Error
)
System\Xml\Dom\DocumentSchemaValidator.cs (3)
778
if (arg.Severity == XmlSeverityType.
Error
)
786
if (arg.Severity == XmlSeverityType.
Error
)
797
else if (arg.Severity == XmlSeverityType.
Error
)
System\Xml\Schema\BaseProcessor.cs (9)
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
);
245
SendValidationEvent(e, XmlSeverityType.
Error
);
255
if (severity == XmlSeverityType.
Error
)
263
else if (severity == XmlSeverityType.
Error
)
271
if (severity == XmlSeverityType.
Error
)
System\Xml\Schema\BaseValidator.cs (3)
267
SendValidationEvent(e, XmlSeverityType.
Error
);
286
else if (severity == XmlSeverityType.
Error
)
338
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
System\Xml\Schema\DtdParser.cs (22)
421
SendValidationEvent(XmlSeverityType.
Error
, new XmlSchemaException(SR.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos));
571
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
631
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
776
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_IdAttrDeclared, elementDecl.Name.ToString());
789
SendValidationEvent(_curPos - 8, XmlSeverityType.
Error
, SR.Sch_DupNotationAttribute, elementDecl.Name.ToString()); // 8 == strlen("NOTATION")
797
SendValidationEvent(_curPos - 8, XmlSeverityType.
Error
, SR.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString()); // 8 == strlen("NOTATION")
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));
906
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_AttListPresence, string.Empty);
944
SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.
Error
, SR.Sch_DupElementDecl, GetNameString());
1088
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1150
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1175
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1187
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_DupElement, name.ToString());
1196
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1323
SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.
Error
, SR.Sch_DupNotation, notationName.Name);
1385
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, null);
1423
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1448
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1457
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
3360
SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.
Error
, SR.Xml_UndeclaredParEntity, entityName.Name);
3369
SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.
Error
, SR.Xml_UndeclaredEntity, entityName.Name);
System\Xml\Schema\DtdParserAsync.cs (20)
63
SendValidationEvent(XmlSeverityType.
Error
, new XmlSchemaException(SR.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos));
215
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
275
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
420
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_IdAttrDeclared, elementDecl.Name.ToString());
433
SendValidationEvent(_curPos - 8, XmlSeverityType.
Error
, SR.Sch_DupNotationAttribute, elementDecl.Name.ToString()); // 8 == strlen("NOTATION")
441
SendValidationEvent(_curPos - 8, XmlSeverityType.
Error
, SR.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString()); // 8 == strlen("NOTATION")
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));
550
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_AttListPresence, string.Empty);
588
SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.
Error
, SR.Sch_DupElementDecl, GetNameString());
719
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
781
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
806
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
818
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_DupElement, name.ToString());
827
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
957
SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.
Error
, SR.Sch_DupNotation, notationName.Name);
1006
SendValidationEvent(XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, null);
1045
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1070
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
1079
SendValidationEvent(_curPos, XmlSeverityType.
Error
, SR.Sch_ParEntityRefNesting, string.Empty);
System\Xml\Schema\DtdValidator.cs (3)
555
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
601
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
616
eventHandling.SendEvent(e, XmlSeverityType.
Error
);
System\Xml\Schema\SchemaAttDef.cs (1)
201
validationEventHandling.SendEvent(new XmlSchemaException(SR.Sch_XmlSpace, string.Empty), XmlSeverityType.
Error
);
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\ValidationEventArgs.cs (1)
18
_severity = XmlSeverityType.
Error
;
System\Xml\Schema\XdrBuilder.cs (2)
1806
SendValidationEvent(new XmlSchemaException(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.
Error
);
1816
else if (severity == XmlSeverityType.
Error
)
System\Xml\Schema\XdrValidator.cs (1)
356
SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.
Error
);
System\Xml\Schema\XmlSchemaSet.cs (5)
519
SendValidationEvent(new XmlSchemaException(SR.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.
Error
);
1096
SendValidationEvent(e, XmlSeverityType.
Error
);
1261
SendValidationEvent(new XmlSchemaException(SR.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.
Error
);
1429
SendValidationEvent(new XmlSchemaException(code, qname.ToString()), XmlSeverityType.
Error
);
1449
if (e.Severity == XmlSeverityType.
Error
)
System\Xml\Schema\XmlSchemaValidator.cs (19)
336
SendValidationEvent(SR.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.
Error
);
355
SendValidationEvent(SR.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.
Error
);
1690
severity = XmlSeverityType.
Error
;
2030
SendValidationEvent(new XmlSchemaValidationException(SR.Sch_UndeclaredId, next.Id, _sourceUriString, next.LineNo, next.LinePos), XmlSeverityType.
Error
);
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
);
2832
SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.
Error
);
2837
SendValidationEvent(e, XmlSeverityType.
Error
);
2842
SendValidationEvent(new XmlSchemaValidationException(e.GetRes, e.Args, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.
Error
);
2856
if (severity == XmlSeverityType.
Error
)
2884
else if (severity == XmlSeverityType.
Error
)
System\Xml\Schema\XsdBuilder.cs (3)
741
SendValidationEvent(SR.Sch_InvalidXsdAttributeDatatypeValue, new string[] { name, e.Message }, XmlSeverityType.
Error
);
2582
else if (severity == XmlSeverityType.
Error
)
2590
SendValidationEvent(e, XmlSeverityType.
Error
);
System\Xml\Schema\XsdValidator.cs (2)
164
SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { BaseUri!.AbsoluteUri, e.Message }, XmlSeverityType.
Error
);
604
SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.
Error
);
System\Xml\Serialization\Mappings.cs (1)
1232
if (args.Severity == XmlSeverityType.
Error
)
System\Xml\XPath\XPathNavigator.cs (2)
1092
if (args.Severity == XmlSeverityType.
Error
)
1102
else if (exception != null && args.Severity == XmlSeverityType.
Error
)
System.Private.Xml.Linq (1)
System\Xml\Schema\XNodeValidator.cs (1)
369
else if (e.Severity == XmlSeverityType.
Error
)