Autodesk.Revit.Exceptions
| Name | Return Type | Description |
|---|---|---|
| ApplicationException | None | The exception that is thrown when a non-fatal application error occurs. |
| ArgumentException | None | The exception that is thrown when one of the arguments provided to a method is not valid. |
| ArgumentNullException | None | The exception that is thrown when . a null reference ( Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument. |
| ArgumentOutOfRangeException | None | The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method. |
| ArgumentsInconsistentException | None | The exception that is thrown when each individual argument is OK, but a joint constraint is violated. |
| AutoJoinFailedException | None | The exception that is thrown when an autojoin operation failed. |
| BackgroundTaskCancelledException | None | The exception thrown when Revit cancels a background operation. Third-party developers are not expected to catch and handle this exception. Instead, if allowed to propagate back to Revit code, it will be handled by Revit. |
| CannotOpenBothCentralAndLocalException | None | The exception thrown when both a central model and also a local file for the same central model are opened in the same session. |
| CentralFileCommunicationException | None | The exception thrown when there is a network communication error involving a file-based central model. |
| CentralModelAccessDeniedException | None | The exceptions thrown when a central model can be reached but access is denied due to a lack of access privileges. |
| CentralModelAlreadyExistsException | None | Exception is thrown when the central model already exists at the specified location. |
| CentralModelContentionException | None | The exception thrown when a central model is busy (locked) and the operation is canceled. |
| CentralModelException | None | The base class for exceptions that are common to both file-based and server-based central models or specific to just file-based central models. |
| CorruptModelException | None | The exception that is thrown when the model is or seems corrupt. |
| DirectoryNotFoundException | None | The exception that is thrown when the specified directory could not be found. |
| DisabledDisciplineException | None | The exception that is thrown when the function cannot execute because a discipline is disabled. The exception specifies which discipline(s) would let the operation succeed. |
| ExternalApplicationException | None | The exception that is thrown when an issue in the Add-Ins resulted in an unexpected error. |
| FamilyContextException | None | The exception that is thrown when an operation is invalid in the current family document, because of the type of family. |
| FileAccessException | None | The exception that is thrown when the specified file could not be accessed, e.g. read-only, locked by the OS etc. |
| FileArgumentAlreadyExistsException | None | The exception that is thrown when the specified file exists. |
| FileArgumentNotFoundException | None | The exception that is thrown when a method received a filename as an argument and requires it to exist as a precondition. |
| FileNotFoundException | None | The exception that is thrown when the specified file could not be found. |
| ForbiddenForDynamicUpdateException | None | The exception that is thrown when making or attempting to make changes that are forbidden during dynamic updates to the model. |
| FunctionId | None | The information of a function throwing an exception. |
| InapplicableDataException | None | The exception that is thrown when attempting to access a piece of data that is structurally not part of an object at the moment. |
| InsufficientResourcesException | None | The exception that is thrown when the OS runs out of resources, e.g. memory, disk space, or USER or GDI objects. |
| InternalException | None | The exception that is thrown when an issue in the Revit code resulted in an unexpected error. |
| InvalidDataStreamException | None | The exception that is thrown when the reading or saving operation failed due to parsing error. |
| InvalidObjectException | None | The exception that is thrown when referencing an object that is no longer valid. |
| InvalidOperationException | None | The exception that is thrown when a method call is invalid for the object's current state. |
| InvalidPathArgumentException | None | The exception that is thrown when a method received a pathname as an argument, but the pathname is illegal: too long, invalid characters, etc. |
| IOException | None | The exception that is thrown when an I/O error occurs. |
| ModificationForbiddenException | None | The exception that is thrown by the undo transaction framework when a modification operation is not allowed. |
| ModificationOutsideTransactionException | None | The exception that is thrown by the undo transaction framework when the modification operation to the model is outside of a transaction. |
| NotTransmittedModelException | None | The exception thrown when OpenOptions were provided to deal with a transmitted model, but the model is not transmitted. |
| ObjectAccessException | None | The exception that is thrown when an operation is denied, e.g. an attempt was made to set a read-only property. |
| OperationCanceledException | None | The exception that is thrown when an operation is unexpectedly cancelled. |
| OptionalFunctionalityNotAvailableException | None | The exception that is thrown when the optional functionality is not available in the installed Revit |
| OutdatedDirectlyOpenedCentralException | None | The exception thrown when a central model is opened directly and its copy in the session is outdated. If the operation is supported for local files, first resave as local, and try again. |
| RegenerationFailedException | None | The exception that is thrown when a regeneration operation failed. |
| RevitServerCollaborationNotAvailableException | None | The exception that is thrown when Collaboration fails because of an external resource (e.g., Amazon S3) failure. |
| RevitServerCommunicationException | None | The exception that is thrown when there is any network communication error happening. |
| RevitServerException | None | The exception that is base class for all exceptions originating from the Revit server. |
| RevitServerInternalException | None | The exception that is thrown when there is any server internal error happening. |
| RevitServerUnauthenticatedUserException | None | The exception that is thrown when an unauthenticated user attempts to initiate a call to RevitServer. |
| RevitServerUnauthorizedException | None | The exception that is thrown when a call to the server is unauthorized. |
| TransientElementCreationException | None | The exception that is thrown when TransientElementCreationScope is used incorrectly. |
| TransmittedModelException | None | The exception thrown when model was transmitted (sent by eTransmit) and insufficient OpenOptions were provided to handle its transmitted flag. |
| WrongUserException | None | The exception thrown when a local model is manipulated under a different username than it was created with. |
No comments yet. Start the discussion.
Loading…