From the course: AutoCAD Add-ins Using VB.NET

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

How to use error trapping

How to use error trapping - AutoCAD Tutorial

From the course: AutoCAD Add-ins Using VB.NET

Start my 1-month free trial

How to use error trapping

- [Instructor] So far we've written simple code. We've written a code together, everything's worked out quite well. However, as we get more complex with our functionality as we begin to write our own code outside of any tutorials that have been done and especially as we begin to interact with the user more we really need to learn how catch and deal with errors in a dignified way. Ultimately, we want our function to never ever have errors. If it does have errors be able to address those errors without the user even being notified or aware that there were some bumps in the source code in the background. There are times, though, that we'll even want to inform the user of an issue and that there was a problem and that this is where the problem was and then deal with the error as best as we can, but allow us the information or provides us the information that we can properly troubleshoot and correct the error down the road. Ultimately, never do we want our software to crash AutoCAD or any…

Contents