#[derive(thiserror::Error, Debug)]
pub enum NotebookError {
#[error("The notename `{notename}` is already taken; try use another note-name")]
AlreadyTaken { notename: String },
#[error(
"Data base enivroment variable for notebook not specifed;
try use `export DATABASE_URL=postgres://username:password@localhost/db` before start programm
before use `cargo run ...` again"
)]
DatabaseNotSpecifed,
#[error(transparent)]
Sqlx(#[from] sqlx::Error),
#[error(transparent)]
VarError(#[from] std::env::VarError),
}