We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a296e commit 773c1cbCopy full SHA for 773c1cb
1 file changed
libsql-wal/src/storage/error.rs
@@ -1,5 +1,7 @@
1
use std::panic::Location;
2
3
+use chrono::{DateTime, Utc};
4
+
5
#[derive(thiserror::Error, Debug)]
6
pub enum Error {
7
#[error("io error: {0}")]
@@ -10,6 +12,8 @@ pub enum Error {
10
12
Compact(#[from] crate::error::Error),
11
13
#[error("frame not {0} found")]
14
FrameNotFound(u64),
15
+ #[error("No satisfying segment found for timestamp {0}")]
16
+ SegmentNotFoundTimestamp(DateTime<Utc>),
17
#[error("unhandled storage error: {error}, in {context}")]
18
UnhandledStorageError {
19
error: Box<dyn std::error::Error + Send + Sync + 'static>,
0 commit comments