use ruma_common::OwnedEventId;
use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum Error {
#[error("Failed to find event {0}")]
NotFound(OwnedEventId),
#[error("Invalid auth event: {0}")]
AuthEvent(String),
#[error("State event has no `state_key`")]
MissingStateKey,
#[error("`fetch_conflicted_state_subgraph` failed")]
FetchConflictedStateSubgraphFailed,
}