XmlSchemaReferenceException Class

 

Represents errors reported by the XmlSchemaSetBuilder when a call to XmlSchemaSetBuilder::Compile reports errors.

Namespace:   Microsoft.VisualStudio.XmlEditor
Assembly:  Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)

System::Object
  System::Exception
    Microsoft.VisualStudio.XmlEditor::XmlSchemaReferenceException

[SerializableAttribute]
public ref class XmlSchemaReferenceException : Exception

NameDescription
System_CAPS_pubmethodXmlSchemaReferenceException(String^, Exception^, XmlSchemaReference^)

Initializes a new instance of the XmlSchemaReferenceException class.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertyReference

Returns the XmlSchemaReference from the XmlSchemaSetBuilder::Sources collection that triggered this exception.

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

NameDescription
System_CAPS_proteventSerializeObjectState

(Inherited from Exception.)

When a call to XmlSchemaSetBuilder::Compile reports a resolution error, it is useful for applications to understand exactly which XmlSchemaSetBuilder::Sources collection caused the error. An XmlSchemaReferenceException is reported for each XmlSchemaReference in the Sources collection that directly or indirectly references a schema that resulted in resolution errors.

As an example, consider a schema attempting to include xsdtest1.xsd, which in turn includes xsdtest2.xsd. Suppose that xsdtest2.xsd includes xsdtest3.xsd and xsdtest3.xsd includes unknownlocation.xsd. A T:System.IO.FileNotFound exception will be reported, because unknownlocation.xsd was not found. The raised XmlSchemaReferenceException will point to the original XmlSchemaReference for xsdtest1.xsd, to inform the user that this reference resulted in down-stream errors.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: