pub enum ExecError {
Cancelled,
Connect(Box<ConnectError>),
Config {
message: String,
hint: Option<String>,
},
InvalidRequest {
message: String,
hint: Option<String>,
},
InvalidParams(String),
Sql {
sqlstate: String,
message: String,
detail: Option<String>,
hint: Option<String>,
position: Option<String>,
},
Internal(String),
}Variants§
Cancelled
Connect(Box<ConnectError>)
Config
InvalidRequest
InvalidParams(String)
Sql
Fields
Internal(String)
Trait Implementations§
Source§impl Display for ExecError
Agent-facing text for an error. Every variant renders the human-readable
message only — never a Rust struct dump. format!("{error:?}") is the
ergonomic way to put an error into an event field and it leaks internal
shape to the agent, so the correct rendering has to be the easy one.
impl Display for ExecError
Agent-facing text for an error. Every variant renders the human-readable
message only — never a Rust struct dump. format!("{error:?}") is the
ergonomic way to put an error into an event field and it leaks internal
shape to the agent, so the correct rendering has to be the easy one.
Source§impl From<ConnectionConfigError> for ExecError
impl From<ConnectionConfigError> for ExecError
Source§fn from(err: ConnectionConfigError) -> Self
fn from(err: ConnectionConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecError
impl RefUnwindSafe for ExecError
impl Send for ExecError
impl Sync for ExecError
impl Unpin for ExecError
impl UnsafeUnpin for ExecError
impl UnwindSafe for ExecError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more