Provisioning Schema::catch

Element that executes error handling steps if errors occur in the corresponding try block. This element is part of the provisioning schema of Microsoft Provisioning Framework (MPF).

Provisioning requests that use try-catch error handling have try and catch nodes in the procedure. Each procedure step that requires error handling is wrapped in a try node. If an error occurs when a provisioning engine executes the try node, the engine executes the corresponding catch node and passes the errorContext node to all its procedures. If the catch node successfully responds to the error, the procedure continues to execute. Otherwise, the engine initiates rollback.

The try-catch blocks can be nested to any depth. A catch node must always be associated with a try node at the same level of the tree.

 Arguments
 Remarks
 Sample Code
 Applies To
 See Also