This element specifies a possible error code that a task can return. The value of the error code is returned and trapped by the task’s HRESULT to provide more specific error information.
Element Information
Table 85 provides information about the Error element.
Table 85. Error Element Information
Attribute |
Value |
Number of occurrences |
Zero or more within each ExitCode element (This element is optional.) |
Parent elements |
ExitCodes |
Contents |
Any well-formed XML content |
Element Attributes
Table 86 lists the attributes of the Error element and provides a description of each.
Table 86. Attributes and Corresponding Values for the Error Element
Attribute |
Description |
State |
Specifies the return state of a task that encountered an error. Typically, the value for this attribute is set to Error. This value is displayed in the State column on the wizard page in the UDI Wizard. |
Text |
Specifies the descriptive text about the error condition that the task encountered. |
Type |
Specifies whether this element represents an error, warning, or success. The value specified in Type must be unique within an ExitCodes element. The following are valid values for this element: · 0. The element represent a success. · 1. The element represents a warning. · -1. The element represents an error. |
Value |
Specifies the value of the code that the task returned as a numeric value. Specifying the value of an asterisk (*) indicates the default element for return codes that are not listed in other Error elements. |
Remarks
None.
Example
None.
Related Topics