#![warn(missing_docs)]
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("An error occurred while gathering common configuration: {0}")]
ConfigError(String),
#[error("An error occurred while retrieving the congress.gov API key from the environment: {0}")]
CongressGovApiKeyError(String),
#[error("An error occurred while performing an HTTP GET request to the congress.gov API: {0}")]
CongressGovHttpGetError(String),
#[error("An error occurred while reading the HTTP response body: {0}")]
CongressGovResponseError(String),
#[error("Failed to split a name string: {0}")]
NameSplitError(String),
#[error("Failed to connect and obtain a connection pool for the PostgreSQL database server: {0}")]
PgConnectError(String),
#[error("Failed to complete an INSERT operation: {0}")]
PgInsertError(String),
#[error("A SELECT query failed to obtain the requested data: {0}")]
PgSelectError(String),
}