The Exception object is used to obtain information about the error trapped with the Catch clause of a Try statement. The Exception object used for the AutoCAD .NET API is based on the Exception object of the Microsoft® .NET Framework. To determine the error that is trapped by the Catch clause, you can use the properties of the Exception object. Some of the member properties of the Exception object that you can get information about the error are:
Exception 对象用于获取使用 Try 语句的 Catch 子句捕捉错误的信息。用于 AutoCAD .NET API 的 Exception 对象是派生自 Microsoft® .NET Framework 的 Exception 对象。若要通过 Catch 子句捕捉以确定一个错误,可以使用 Exception 对象的属性。Exception 对象的某些成员属性可以让你获得关于这个错误的某些信息: