Extending product function with VBA > System Architect errors > Handling errors
  
Handling errors
The properties and methods in the System Architect Object Model execute their code in a consistent way, but unfortunately the base data might not always be as expected and errors might occur during the natural operation of a Microsoft VBA macro. A number of issues might arise during normal operation and these need to be trapped and handled or else the macro will terminate abruptly without finishing the code execution.
When an error occurs during code execution the following dialog is shown. The method Diagram.Show has been executed to open the current diagram graphic. However, the diagram has already been opened at some other point in the code and so an error occurs.
This graphic is described in the surrounding text.
You can click End to end the program, or Debug to open the Microsoft VBA editor interface and highlights where the error occurred.
See also
System Architect errors