pub enum PgWireError {
Show 32 variants
UnsupportedProtocolVersion(u16, u16),
InvalidCancelRequest,
InvalidSecretKey,
InvalidMessageType(u8),
MessageTooLarge(usize, usize),
InvalidTargetType(u8),
InvalidTransactionStatus(u8),
InvalidSSLRequestMessage,
InvalidGssEncRequestMessage,
InvalidStartupMessage,
InvalidAuthenticationMessageCode(i32),
FailedToCoercePasswordMessage,
InvalidSASLState,
UnsupportedSASLAuthMethod(String),
IoError(Error),
PortalNotFound(String),
StatementNotFound(String),
ParameterIndexOutOfBound(usize),
InvalidRustTypeForParameter(String),
FailedToParseParameter(Box<dyn Error + Send + Sync>),
InvalidScramMessage(String),
InvalidPassword(String),
UnsupportedCertificateSignatureAlgorithm,
UserNameRequired,
NotReadyForQuery,
InvalidOptionValue(String),
InvalidOauthMessage(String),
OAuthAuthenticationFailed(String),
OAuthValidationError(String),
OauthAuthzIdError(String),
ApiError(Box<dyn Error + Send + Sync + 'static>),
UserError(Box<ErrorInfo>),
}Variants§
UnsupportedProtocolVersion(u16, u16)
InvalidCancelRequest
InvalidSecretKey
InvalidMessageType(u8)
MessageTooLarge(usize, usize)
InvalidTargetType(u8)
InvalidTransactionStatus(u8)
InvalidSSLRequestMessage
InvalidGssEncRequestMessage
InvalidStartupMessage
InvalidAuthenticationMessageCode(i32)
FailedToCoercePasswordMessage
InvalidSASLState
UnsupportedSASLAuthMethod(String)
IoError(Error)
PortalNotFound(String)
StatementNotFound(String)
ParameterIndexOutOfBound(usize)
InvalidRustTypeForParameter(String)
FailedToParseParameter(Box<dyn Error + Send + Sync>)
InvalidScramMessage(String)
InvalidPassword(String)
UnsupportedCertificateSignatureAlgorithm
UserNameRequired
NotReadyForQuery
InvalidOptionValue(String)
InvalidOauthMessage(String)
OAuthAuthenticationFailed(String)
OAuthValidationError(String)
OauthAuthzIdError(String)
ApiError(Box<dyn Error + Send + Sync + 'static>)
UserError(Box<ErrorInfo>)
Trait Implementations§
Source§impl Debug for PgWireError
impl Debug for PgWireError
Source§impl Display for PgWireError
impl Display for PgWireError
Source§impl Error for PgWireError
impl Error for PgWireError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for PgWireError
impl From<Error> for PgWireError
Source§impl From<PgWireError> for Error
impl From<PgWireError> for Error
Source§fn from(e: PgWireError) -> Self
fn from(e: PgWireError) -> Self
Converts to this type from the input type.
Source§impl From<PgWireError> for ErrorInfo
impl From<PgWireError> for ErrorInfo
Source§fn from(error: PgWireError) -> Self
fn from(error: PgWireError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PgWireError
impl !RefUnwindSafe for PgWireError
impl Send for PgWireError
impl Sync for PgWireError
impl Unpin for PgWireError
impl !UnwindSafe for PgWireError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more