use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, Error, PartialEq)]
#[non_exhaustive]
pub enum Error {
#[error("idb error")]
IdbError(#[from] idb::Error),
#[error("couldn't abort a transaction")]
TransactionAbortFailed,
#[error("couldn't commit a transaction")]
TransactioncommitFailed,
}