mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-25 02:06:28 +00:00
* Graceful shutdown and refactor * ok * _Graceful_ shutdown * Remove hardcoded setting * clean up * end * timeout * hmm * hmm! * bash * bash * hmm * maybe maybe * Adds tests and move non-admin connection rejection to startup (#145) * Move error response * Adds tests and removes unused variable * Adds debug log Co-authored-by: zainkabani <77307340+zainkabani@users.noreply.github.com>
17 lines
265 B
Rust
17 lines
265 B
Rust
/// Errors.
|
|
|
|
/// Various errors.
|
|
#[derive(Debug, PartialEq)]
|
|
pub enum Error {
|
|
SocketError,
|
|
ClientBadStartup,
|
|
ProtocolSyncError,
|
|
ServerError,
|
|
BadConfig,
|
|
AllServersDown,
|
|
ClientError,
|
|
TlsError,
|
|
StatementTimeout,
|
|
ShuttingDown,
|
|
}
|