Hussein
10/14/2025, 9:15 PMcriccomini
10/14/2025, 9:33 PMcriccomini
10/14/2025, 9:33 PMTransaction ErrorKindcriccomini
10/14/2025, 9:34 PMrs
/// Represents the kind of public errors that can be returned to the user.
///
/// These are less specific and more prescriptive. Application developers or operators must
/// decide how to proceed. Adding new [ErrorKind]s requires an RFC, and should happen very
/// infrequently.
#[non_exhaustive]
#[derive(Debug, Clone, Copy)]
pub enum ErrorKind {
/// A transaction conflict occurred. The transaction must be retried or dropped.
Transaction,
/// The database has been shutdown. The instance is no longer usable. The user must
/// create a new instance to continue using the database.
Closed(CloseReason),
/// A storage or network service is unavailable. The user must retry or drop the
/// operation.
Unavailable,
/// User attempted an invalid request. This might be:
///
/// - An invalid configuration on initialization
/// - An invalid argument to a method
/// - An invalid method call
/// - A user-supplied plugin such as the compaction schedule supplier or logical clock
/// failed.
///
/// The user must correct the code, configuration, or argument and retry the operation.
Invalid,
/// Persisted data is in an unexpected state. This could be caused by:
///
/// - Temporary or permanent machine or object storage corruption
/// - Incompatible file format versions between clients
/// - An eventual consistency issue in object storage
///
/// The user must fix the data, use a compatible client version, retry the operation,
/// or drop the operation.
Data,
/// An unexpected internal error occurred. Users should not expect to see this error.
/// Please [open a Github issue](https://github.com/slatedb/slatedb/issues/new?template=bug_report.md&title=Internal+error+returned)
/// if you receive this error.
Internal,
}criccomini
10/14/2025, 9:35 PMcriccomini
10/14/2025, 9:35 PMdb.panics() methodHussein
10/14/2025, 9:37 PMHussein
10/14/2025, 9:39 PMcriccomini
10/14/2025, 9:46 PMcriccomini
10/14/2025, 9:47 PMcriccomini
10/14/2025, 9:47 PMHussein
10/14/2025, 10:08 PMcriccomini
10/14/2025, 10:13 PMcriccomini
10/14/2025, 10:14 PM