Microsoft Producer for PowerPoint 2003 SDK banner art
PreviousNext

Error.Description

The Description property retrieves a description of the most recent Producer error.

Syntax

Application.Error.Description

Possible Values

This property is a read-only String.

Remarks

When an error occurs in Producer, the Number and Description properties of the Error object are automatically set. In a JScript try/catch block, the number property of the script error object must be compared to the Number property of the Producer Error object to determine whether the error that occurred is actually a Producer error and not a JScript error. If it is a Producer error, the Error.Description property will contain additional information.

Example

This example illustrates how to use the Error object:

try {
  // The code that might generate an error goes here.
} catch (e) {
  // Test whether the error is a Producer error.
  if (e.number == Application.Error.Number){
    // Display the Producer error.
    alert(Application.Error.Description);
  } else {
    // Display the JScript error.
    alert(e.description);
  }
}

See Also

PreviousNext


© 2001-2003 Microsoft Corporation. All rights reserved.