Class UninitializedRecordStoreException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.apple.foundationdb.util.LoggableException
-
- com.apple.foundationdb.record.RecordCoreException
-
- com.apple.foundationdb.record.provider.foundationdb.UninitializedRecordStoreException
-
- All Implemented Interfaces:
LoggableKeysAndValues<LoggableException>
,Serializable
@API(MAINTAINED) public class UninitializedRecordStoreException extends RecordCoreException
An exception that can be thrown byFDBRecordStore
s if they are used before they have been properly initialized. In particular, this may be called if the user calls a method that requires information stored within the record store's state state (e.g., which indexes have been built or information stored in the store's header), and the user has neither used a variant ofFDBRecordStoreBase.BaseBuilder.createOrOpen(FDBRecordStoreBase.StoreExistenceCheck)
to create the store nor calledFDBRecordStore.checkVersion(FDBRecordStoreBase.UserVersionChecker, FDBRecordStoreBase.StoreExistenceCheck)
manually. If a record store is accessed without calling one of those methods, then the record store can end up in a corrupt state.If one encounters this error, it is generally a sign that they are doing something unsafe. To prevent this error, the user may wish to audit the code for instances of calls to
FDBRecordStore.Builder.build()
andFDBRecordStoreBase.BaseBuilder.uncheckedOpen()
, either of which may cause the user to make use of an initialized record store.- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class com.apple.foundationdb.record.RecordCoreException
addLogInfo, addLogInfo
-
Methods inherited from class com.apple.foundationdb.util.LoggableException
exportLogInfo, getLogInfo
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-