Autodesk.Revit.Exceptions Namespace


Autodesk. Revit. Exceptions Namespace

Classes
Class Description
Public class AccessDeniedException
Public class ApplicationException The exception that is thrown when a non-fatal application error occurs.
Public class ArgumentException The exception that is thrown when one of the arguments provided to a method is not valid.
Public class ArgumentNullException The exception that is thrown when is passed to a method that does not accept it as a valid argument.
Public class ArgumentOutOfRangeException The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
Public class ArgumentsInconsistentException The exception that is thrown when each individual argument is OK, but a joint constraint is violated.
Public class AutoJoinFailedException The exception that is thrown when an autojoin operation failed.
Public class BackgroundTaskCancelledException 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.
Public class CannotOpenBothCentralAndLocalException The exception thrown when both a central model and also a local file for the same central model are opened in the same session.
Public class CentralFileCommunicationException The exception thrown when there is a network communication error involving a file-based central model.
Public class CentralModelAccessDeniedException The exceptions thrown when a central model can be reached but access is denied due to a lack of access privileges.
Public class CentralModelAlreadyExistsException Exception is thrown when the central model already exists at the specified location.
Public class CentralModelContentionException The exception thrown when a central model is busy (locked) and the operation is canceled.
Public class CentralModelException 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.
Public class Code example CentralModelVersionArchivedException Exception is thrown when last central version merged into the local model has been archived in the central model. Reload Latest or Synchronized with Central needs to be conducted before the current failed operation is retried.
Public class Code example CheckoutElementsRequestTooLargeException Exception is thrown when too many elements are requested for checkout
Public class CorruptModelException The exception that is thrown when the model is or seems corrupt.
Public class DefaultValueException The exception thrown when Revit cannot initialize a default value for a family parameter.
Public class DirectoryNotEmptyException The exception that is thrown when a method received a directory as an argument and requires that the directory be empty but the directory is not empty.
Public class DirectoryNotFoundException The exception that is thrown when the specified directory could not be found.
Public class DisabledDisciplineException 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.
Public class ExternalApplicationException The exception that is thrown when an issue in the Add-Ins resulted in an unexpected error.
Public class FamilyContextException The exception that is thrown when an operation is invalid in the current family document, because of the type of family.
Public class FileAccessException The exception that is thrown when the specified file could not be accessed, e.g. read-only, locked by the OS etc.
Public class FileArgumentAlreadyExistsException The exception that is thrown when the specified file exists.
Public class FileArgumentNotFoundException The exception that is thrown when a method received a filename as an argument and requires it to exist as a precondition.
Public class FileNotFoundException The exception that is thrown when the specified file could not be found.
Public class ForbiddenForDynamicUpdateException The exception that is thrown when making or attempting to make changes that are forbidden during dynamic updates to the model.
Public class FunctionId The information of a function throwing an exception.
Public class InapplicableDataException The exception that is thrown when attempting to access a piece of data that is structurally not part of an object at the moment.
Public class InsufficientResourcesException The exception that is thrown when the OS runs out of resources, e.g. memory, disk space, or USER or GDI objects.
Public class InternalException The exception that is thrown when an issue in the Revit code resulted in an unexpected error.
Public class InvalidDataStreamException The exception that is thrown when the reading or saving operation failed due to parsing error.
Public class InvalidObjectException The exception that is thrown when referencing an object that is no longer valid.
Public class InvalidOperationException The exception that is thrown when a method call is invalid for the object's current state.
Public class InvalidPathArgumentException The exception that is thrown when a method received a pathname as an argument, but the pathname is illegal: too long, invalid characters, etc.
Public class IOException The exception that is thrown when an I/O error occurs.
Public class ModificationForbiddenException The exception that is thrown by the undo transaction framework when a modification operation is not allowed.
Public class ModificationOutsideTransactionException The exception that is thrown by the undo transaction framework when the modification operation to the model is outside of a transaction.
Public class NetworkCommunicationException
Public class NotTransmittedModelException The exception thrown when OpenOptions were provided to deal with a transmitted model, but the model is not transmitted.
Public class ObjectAccessException The exception that is thrown when an operation is denied, e.g. an attempt was made to set a read-only property.
Public class OperationCanceledException The exception that is thrown when an operation is unexpectedly cancelled.
Public class OptionalFunctionalityNotAvailableException The exception that is thrown when the optional functionality is not available in the installed Revit
Public class OutdatedDirectlyOpenedCentralException 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.
Public class RegenerationFailedException The exception that is thrown when a regeneration operation failed.
Public class ResourceNotFoundException
Public class RevitServerCollaborationNotAvailableException The exception that is thrown when Collaboration fails because of an external resource (e.g., Amazon S3) failure.
Public class RevitServerCommunicationException The exception that is thrown when there is any network communication error happening.
Public class RevitServerException The exception that is base class for all exceptions originating from the Revit server.
Public class RevitServerInternalException The exception that is thrown when there is any server internal error happening.
Public class RevitServerModelAlreadyExistsException The exception that is thrown when there is a model with the same name already exist.
Public class RevitServerModelNameBreaksConventionException The exception that is thrown when the model is breaking the project naming convention.
Public class RevitServerUnauthenticatedUserException The exception that is thrown when an unauthenticated user attempts to initiate a call to RevitServer.
Public class RevitServerUnauthorizedException The exception that is thrown when a call to the server is unauthorized.
Public class SchemaException The exception thrown when Revit cannot interpret a data structure described by a schema.
Public class ServerInternalException
Public class TransientElementCreationException The exception that is thrown when TransientElementCreationScope is used incorrectly.
Public class TransmittedModelException The exception thrown when model was transmitted (sent by eTransmit) and insufficient OpenOptions were provided to handle its transmitted flag.
Public class UnauthenticatedException
Public class WrongUserException The exception thrown when a local model is manipulated under a different username than it was created with.