deadpool_libsql/errors.rs
1use thiserror::Error;
2
3/// This error is returned when the connection fails
4#[derive(Debug, Error)]
5pub enum ConnectionError {
6 /// The error was reported by the [libsql::Connection].
7 #[error("Libsql returned an error: {0}")]
8 Libsql(#[from] libsql::Error),
9 /// The test query was executed but the database returned
10 /// an unexpected response.
11 #[error("Test query failed: {0}")]
12 TestQueryFailed(&'static str),
13}