Skip to main content

rdf_store_postgres/
error.rs

1// This is free and unencumbered software released into the public domain.
2
3use thiserror::Error;
4
5/// An error when interacting with a PostgreSQL store.
6#[derive(Debug, Error)]
7pub enum PostgresError {
8    #[error("read-only transaction")]
9    ReadOnly,
10
11    #[error("server returned: {0}")]
12    Server(#[from] tokio_postgres::Error),
13
14    #[error("other error")]
15    Other,
16}