chore: first commit

This commit is contained in:
Alexander Navarro 2025-05-06 20:24:41 -04:00
commit 1d5a517395
13 changed files with 2396 additions and 0 deletions

24
src/error.rs Normal file
View file

@ -0,0 +1,24 @@
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("{0}")]
Exception(&'static str),
#[error("{0}")]
Runtime(String),
#[error("{0}")]
Unhandled(&'static str),
#[error(transparent)]
Sqlx(#[from] sqlx::Error),
#[error(transparent)]
Io(#[from] tokio::io::Error),
#[error(transparent)]
ParseJson(#[from] serde_json::Error),
}
pub type Result<T> = std::result::Result<T, Error>;