use thiserror::Error;
pub type Result<T> = std::result::Result<T, InterchangeError>;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum InterchangeError {
#[error("failed to process session JSON: {0}")]
Decode(#[from] serde_json::Error),
#[error("invalid session artifact: {0}")]
InvalidSession(String),
#[error("io error: {0}")]
Io(#[from] std::io::Error),
#[error("{0}")]
Other(String),
}