Namespace Realms.Exceptions
Classes
RealmClassLacksPrimaryKeyException
An exception thrown when trying to lookup an object by primary key, when the object doesn't have PrimaryKeyAttribute specified.
RealmClosedException
An exception thrown when trying to invoke members of a closed Realm.
RealmDecryptionFailedException
An exception, raised when file decryption is unsuccessful, most likely due to invalid EncryptionKey.
RealmDuplicatePrimaryKeyValueException
An exception thrown when an object with the same primary key has already been added.
RealmException
Base for Realm specific exceptions.
RealmFeatureUnavailableException
An exception thrown when attempting to use a feature that is not available at your edition level.
If you're using a paid edition of the Realm Platform, make sure you call
SyncConfiguration.SetFeatureToken
before any calls to GetInstance(RealmConfigurationBase).
RealmFileAccessErrorException
Base for catching exceptions with Realm files, typically problems from which an app would recover.
RealmFileExistsException
Exception thrown when a file with the same name already exists.
RealmFileNotFoundException
Exception thrown when trying to open a file that does not exist.
RealmFrozenException
Exception thrown when trying to subscribe to changes or modify a frozen Realm, RealmObject, or IRealmCollection<T>.
RealmInvalidDatabaseException
Exception thrown when a file exists but doesn't appear to be a Realm database, may indicate corruption.
RealmInvalidObjectException
An exception, thrown when the object is no longer managed by the Realm.
RealmInvalidTransactionException
An exception, thrown when trying to write data to the Realm outside a Transaction or when trying to create a transaction on a Realm that is opened as read-only.
RealmMigrationNeededException
Exception thrown when attempting to open a file whose RealmSchema differs from your current class declarations.
RealmMismatchedConfigException
An exception thrown when you try to open a Realm file with a different RealmConfigurationBase.
RealmObjectManagedByAnotherRealmException
Exception thrown when you're trying to use Add(RealmObject, Boolean) but the object is already managed by a different Realm.
RealmOutOfMemoryException
Exception when Realm's run out of memory, shut down your application rather than trying to continue.
RealmPermissionDeniedException
Exception when you can't open an existing realm file, or create a new one.