Chapter 9Catching 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 or bugs, as programmers commonly refer to them. If you hang around programmers, you ...
Get AutoCAD Platform Customization now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.