mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 15:26:17 +00:00
Domain model, SQLite graph store, link parser, journals chained in time, page origin/activity anchors, weighted synapses with spreading activation, content-addressed blob store and HLC op log with LWW remote apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
458 B
Rust
20 lines
458 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum Error {
|
|
#[error("sqlite: {0}")]
|
|
Sqlite(#[from] rusqlite::Error),
|
|
#[error("io: {0}")]
|
|
Io(#[from] std::io::Error),
|
|
#[error("json: {0}")]
|
|
Json(#[from] serde_json::Error),
|
|
#[error("not found: {0}")]
|
|
NotFound(String),
|
|
#[error("conflict: {0}")]
|
|
Conflict(String),
|
|
#[error("invalid: {0}")]
|
|
Invalid(String),
|
|
}
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|