Back to Devexpress

DevExpress.Xpo.Exceptions Namespace

xpo-devexpress-dot-xpo-7d2c3511.md

latest5.1 KB
Original Source

DevExpress.Xpo.Exceptions Namespace

Contains classes that describe exceptions which may occur when working with data in XPO.

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Classes

NameDescription
AssociationElementTypeMissingExceptionAn exception that is thrown when the elementType parameter is not specified in the AssociationAttribute attribute.
AssociationInvalidExceptionAn exception that is thrown when a persistent property marked with the AssociationAttribute attribute cannot be used to create a relation.
CannotChangePropertyWhenSessionIsConnectedExceptionAn exception that is thrown when the essential properties of the currently connected session are about to be modified.
CannotFindAppropriateConnectionProviderExceptionOccurs when a connection string or an IDbConnection object is not compatible with data store providers.
CannotLoadInvalidTypeExceptionAn exception that is thrown when a persistent object cannot be loaded because it’s type is not valid.
CannotLoadObjectsExceptionAn exception that is thrown when attempting to reload an object that is not present in a persistent data store.
CannotResolveClassInfoExceptionAn exception that is thrown when the XPDictionary cannot provide XPClassInfo metadata information for the class.
DifferentObjectsWithSameKeyExceptionAn exception that is thrown when two objects within the current session have the same key.
DuplicateKeyPropertyExceptionAn exception that is thrown when a persistent object has two or more key properties.
KeyPropertyAbsentExceptionAn exception that is thrown when a persistent object doesn’t have a key.
KeysAutogenerationNonSupportedTypeExceptionAn exception that is thrown when a key field doesn’t support automatic value generation
NonPersistentReferenceFoundExceptionAn exception that is thrown when a persistent reference to a non-persistent class exists.
ObjectCacheExceptionAn exception that is thrown when a severe internal error occurs.
PropertyMissingExceptionAn exception that is thrown when an invalid property name is specified.
RequiredAttributeMissingExceptionAn exception that is thrown when an attribute with the specified name cannot be found for a specific property.
SameTableNameExceptionAn exception that is thrown when two persistent classes are mapped to the same table.
SessionCtorAbsentExceptionAn exception that is thrown when a persistent class doesn’t have a constructor with a Session parameter.
SessionMixingExceptionAn exception that is thrown when a persistent object that belongs to a specific session is used within another session or refers to an object from another session.
TransactionSequenceExceptionAn exception that is thrown when the sequence of the BeginTransaction, CommitTransaction and RollbackTransaction methods is incorrect.
TypeFieldIsEmptyExceptionAn exception that is thrown when an internal error occurs.
TypeNotFoundExceptionAn exception that is thrown when an object in storage refers to a type that cannot be found.
UnableToFillRefTypeExceptionAn exception that is thrown when an error occurs when building the tree structure of classes.
XMLDictionaryExceptionAn exception that is thrown when an error occurs whilst object metadata is being loaded from an XML file.