84 references to Error
dotnet-svcutil-lib (84)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (3)
2592SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, null, _ps.LineNo, _ps.LinePos); 4575SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_StandAloneNormalization, attr.GetNameWPrefix(_nameTable), attr.LineNo, attr.LinePos); 4606SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_UnSpecifiedDefaultAttributeInExternalStandalone, qname, _curNode.LineNo, _curNode.LinePos);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (1)
65else if (_reader.ValidationType != ValidationType.None && severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (3)
803if (arg.Severity == XmlSeverityType.Error) 811if (arg.Severity == XmlSeverityType.Error) 822else if (arg.Severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (9)
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); 259SendValidationEvent(e, XmlSeverityType.Error); 269if (severity == XmlSeverityType.Error) 277else if (severity == XmlSeverityType.Error) 285if (severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (3)
259SendValidationEvent(e, XmlSeverityType.Error); 278else if (severity == XmlSeverityType.Error) 329eventHandling.SendEvent(e, XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (22)
433SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(ResXml.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos)); 583SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 643SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 788SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_IdAttrDeclared, elementDecl.Name.ToString()); 801SendValidationEvent(_curPos - 8, XmlSeverityType.Error, ResXml.Sch_DupNotationAttribute, elementDecl.Name.ToString()); // 8 == strlen("NOTATION") 809SendValidationEvent(_curPos - 8, XmlSeverityType.Error, ResXml.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString());// 8 == strlen("NOTATION") 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)); 918SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_AttListPresence, string.Empty); 956SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, ResXml.Sch_DupElementDecl, GetNameString()); 1100SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1162SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1187SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1199SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_DupElement, name.ToString()); 1208SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1344SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, ResXml.Sch_DupNotation, notationName.Name); 1409SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, null); 1447SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1472SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1481SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 3436SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, ResXml.Xml_UndeclaredParEntity, entityName.Name); 3445SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, ResXml.Xml_UndeclaredEntity, entityName.Name);
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (3)
557eventHandling.SendEvent(e, XmlSeverityType.Error); 606eventHandling.SendEvent(e, XmlSeverityType.Error); 622eventHandling.SendEvent(e, XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaAttDef.cs (1)
220validationEventHandling.SendEvent(new XmlSchemaException(ResXml.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
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\ValidationEventArgs.cs (1)
23_severity = XmlSeverityType.Error;
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
1817SendValidationEvent(new XmlSchemaException(code, msg, _reader.BaseURI, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error); 1827else if (severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (1)
354SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (5)
645SendValidationEvent(new XmlSchemaException(ResXml.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error); 1253SendValidationEvent(e, XmlSeverityType.Error); 1424SendValidationEvent(new XmlSchemaException(ResXml.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error); 1587SendValidationEvent(new XmlSchemaException(code, qname.ToString()), XmlSeverityType.Error); 1619if (e.Severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (19)
348SendValidationEvent(ResXml.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 371SendValidationEvent(ResXml.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 1707severity = XmlSeverityType.Error; 2048SendValidationEvent(new XmlSchemaValidationException(ResXml.Sch_UndeclaredId, next.Id, _sourceUriString, next.LineNo, next.LinePos), XmlSeverityType.Error); 2549SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2553SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContent, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2561SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2565SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2573SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementInEmptyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2577SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementInTextOnlyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2602SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2604SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContent, BuildElementName(context.LocalName, context.Namespace), sourceUri, lineNo, linePos), XmlSeverityType.Error); 2611SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2615SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2842SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error); 2847SendValidationEvent(e, XmlSeverityType.Error); 2852SendValidationEvent(new XmlSchemaValidationException(e.GetRes, e.Args, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.Error); 2866if (severity == XmlSeverityType.Error) 2894else if (severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (3)
746SendValidationEvent(ResXml.Sch_InvalidXsdAttributeDatatypeValue, new string[] { name, e.Message }, XmlSeverityType.Error); 2587else if (severity == XmlSeverityType.Error) 2595SendValidationEvent(e, XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (2)
167SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { BaseUri.AbsoluteUri, e.Message }, XmlSeverityType.Error); 615SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (1)
1275if (args.Severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
581if (args.Severity == XmlSeverityType.Error)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (2)
1151if (args.Severity == XmlSeverityType.Error) 1161else if (exception != null && args.Severity == XmlSeverityType.Error)
FrameworkFork\System.Web.Services\Services\Description\WebReferenceOptions.cs (1)
177if (args.Severity != XmlSeverityType.Error)