Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateValidationException()

static Exception System.Xml.Serialization.XmlSchemas.CreateValidationException ( XmlSchemaException exception,
string message )
inlinestaticpackage

Definition at line 729 of file XmlSchemas.cs.

730 {
731 XmlSchemaObject xmlSchemaObject = exception.SourceSchemaObject;
732 if (exception.LineNumber == 0 && exception.LinePosition == 0)
733 {
735 }
736 string text = null;
737 if (xmlSchemaObject != null)
738 {
739 while (xmlSchemaObject.Parent != null)
740 {
742 }
744 {
745 text = ((XmlSchema)xmlSchemaObject).TargetNamespace;
746 }
747 }
749 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlSchemaSyntaxErrorDetails
Definition SR.cs:1776
Definition SR.cs:7
static string GetSchemaItem(XmlSchemaObject o, string ns, string details)

References System.exception, System.SR.Format(), System.Xml.Serialization.XmlSchemas.GetSchemaItem(), System.text, System.Xml.Serialization.XmlSchemas.XmlSchema, and System.SR.XmlSchemaSyntaxErrorDetails.

Referenced by System.Xml.Serialization.XmlSchemas.Compile(), and System.Xml.Serialization.XmlSchemas.Preprocess().