Catching and Handling Errors

As a veteran AutoLISP® programmer looking back over the past 15 years, I realize writing a custom program wasn't always the difficult part for me. The part of application development that didn't come so naturally was predicting the unexpected. Programs are written based on a set of known criteria, which might include the current values assigned to system variables when the program was created, a specific set of steps that the user should follow, and what the end result should be. However, as in life, your program will have to handle a curve ball every now and then.

As a programmer, you must learn to locate problems—errors ...

Get AutoCAD Platform Customization: User Interface, AutoLISP, VBA, and Beyond now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.