pub enum SnowflakeError {
Token(Error),
Request(Error),
ServerError {
code: String,
message: String,
},
JSONError(Error),
UnsupportedFeature(&'static str),
MultiplePartitions,
InvalidHeaderValue(InvalidHeaderValue),
}
Expand description
Error types for the Snowflake client
Variants§
Token(Error)
An error occurred while signing a request
Request(Error)
An error occurred while sending a request
ServerError
Snowflake returned an error
JSONError(Error)
An error occurred while parsing JSON (these may also appear wrapped in Request errors)
UnsupportedFeature(&'static str)
A certain feature (like a data type) is not supported (yet)
MultiplePartitions
The response contains multiple partitions, and you specified that you only want one
InvalidHeaderValue(InvalidHeaderValue)
There was a problem constructing the client
Trait Implementations§
source§impl Debug for SnowflakeError
impl Debug for SnowflakeError
source§impl Display for SnowflakeError
impl Display for SnowflakeError
source§impl Error for SnowflakeError
impl Error for SnowflakeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§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 SnowflakeError
impl From<Error> for SnowflakeError
source§impl From<Error> for SnowflakeError
impl From<Error> for SnowflakeError
source§impl From<Error> for SnowflakeError
impl From<Error> for SnowflakeError
source§impl From<InvalidHeaderValue> for SnowflakeError
impl From<InvalidHeaderValue> for SnowflakeError
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SnowflakeError
impl Send for SnowflakeError
impl Sync for SnowflakeError
impl Unpin for SnowflakeError
impl !UnwindSafe for SnowflakeError
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