Error Provider

The Error Provider namespace provides a way to write specific errors and send them to the Microsoft Windows application event log, to send errors to Microsoft Provisioning Framework (MPF) to return to the calling procedure, or to translate an error into a more meaningful message that is returned to the user.

The Error Provider namespace implements the following procedures.

Procedure Description
Report Event Raises an error to the Microsoft Windows® application event log.
Set Error Sets the MPF error variable to passed-in values and description for the current error and raises it to the provisioning engine, which propagates the error back to the calling procedure.
TranslateProvisioningError Translates an MPF error raised by a calling procedure and uses a lookup table to translate it into a message that is more meaningful for the current context. For example, this procedure can be used to translate a potentially confusing low-level error into a message that is easy to understand.
Translate UserError Translates a user-specified error to another error. Useful when you know the specific error you want to raise. Used mainly for localization.

Caution

The Microsoft Provisioning Framework Software Development Kit (SDK) contains additional resources to help you implement the Error Provider namespace. For more information on the SDK and how to use it, see Microsoft Provisioning Framework SDK.