Files
notedeck/crates/notedeck_columns/src/error.rs
William Casarin 0cc1d8a600 Switch to unified timeline cache via TimelineKinds
This is a fairly large rewrite which unifies our threads, timelines and
profiles. Now all timelines have a MultiSubscriber, and can be added
and removed to columns just like Threads and Profiles.

Signed-off-by: William Casarin <jb55@jb55.com>
2025-02-05 18:30:45 -08:00

35 lines
675 B
Rust

use std::io;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("timeline not found")]
TimelineNotFound,
#[error("timeline is missing a subscription")]
MissingSubscription,
#[error("load failed")]
LoadFailed,
#[error("network error: {0}")]
Nostr(#[from] enostr::Error),
#[error("database error: {0}")]
Ndb(#[from] nostrdb::Error),
#[error("io error: {0}")]
Io(#[from] io::Error),
#[error("notedeck app error: {0}")]
App(#[from] notedeck::Error),
#[error("generic error: {0}")]
Generic(String),
}
impl From<String> for Error {
fn from(s: String) -> Self {
Error::Generic(s)
}
}