Previous in Contents Next in Contents

Error Handling

Whenever you call a Content Deployment method or get or set a Content Deployment property, you should check the Err object’s Number property for an error code. If the method or property was successful, Content Deployment sets the value of Number to 0.

For example:

if (Err.Number <> 0) then 
  Wscript.Echo "Error :   " & Err.Number 
  Wscript.Echo "Description: " & Err.Description 
end if

Note that Content Deployment makes internal calls to other APIs, including COM, Security/ACL, Registry, Winsock, Service Manager, and Win32. These APIs can return error codes in addition to the given Content Deployment error codes.

Severity Codes

The high nibble of the Error ID indicates the severity of the error.

Nibble Severity
4 Informational
8 Warning
C Error


© 1997-2000 Microsoft Corporation. All rights reserved.