All Revit API methods have been changed to throw subclasses of Autodesk.Revit.Exceptions.ApplicationException. Some Revit exceptions, such as
- ArgumentException
- InvalidOperationException
- FileNotFoundException
closely mirror the corresponding .NET System exception types. However, some of them have subclasses which are unique to Revit, e.g.
- AutoJoinFailedException
- RegenerationFailedException
- ModificationOutsideTransactionException
In addition, there is a special exception type called InternalException, which represents a failure path which was not anticipated. Exceptions of this type carry extra diagnostic information which can be passed back to Autodesk for diagnosis.
Comments
Leave a comment