Share via


Provisioning Schema::errorDescription

Element that encapsulates an XML error description. This element is part of the provisioning schema of Microsoft Provisioning Framework (MPF).

The HTTP and SOAP Provider returns SOAP and HTTP errors in XML format. Whenever a provisioning engine receives an XML error, it generates an errorContext node and returns it to either the calling procedure or (for try-catch blocks) to the procedures in the catch node. The engine parses the code to extract the error description, then assigns this string to /errorContext/@description. It then executes an XSL transformation to translate the error nodes to corresponding child nodes of errorContext.

Arguments

No arguments.

Remarks

No remarks.

Sample Code

Example XML Request

Text error:

<!-- Non-XML error --> 
Server not available.

<!-- Transformation performed by provisioning engine --> 
<errorContext description='Server not available.'/>

XML error:

<!-- Original XML error --> 
<errorDescription description='Server not available.'> 
  <Fault> 
    <faultData/> 
  </Fault> 
</errorDescription>

<!-- Transformation performed by provisioning engine --> 
<errorContext description='Server not available.'> 
  <errorDescription> 
    <Fault> 
      <faultData/> 
    </Fault> 
  </errorDescription> 
</errorContext>

Applies To

Provisioning Schema; Provisioning Schema::errorContext

See also

Tasks

Provisioning Schema::errorContext