#[non_exhaustive]
pub enum ErrorKind {
SledError,
SerializationError,
IOError,
IntegrityError,
NotFound,
UnregisteredEntity,
}
Expand description
Error kind enum for Reindeer-related errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SledError
Something went wrong at the sled
level.
SerializationError
Could not serialize or deserialize an entity
IOError
Any kind of file system error while using the database
IntegrityError
An integrity constraint has been violated while trying to remove an entity from the database
NotFound
An entity was not found
UnregisteredEntity
An entity was used without being registered firts in the database