pub enum ChalkClientError {
Config(String),
Auth(String),
Http(Error),
Api {
status: u16,
message: String,
},
Json(Error),
Yaml(Error),
Arrow(ArrowError),
Io(Error),
Grpc(Box<Status>),
GrpcTransport(Error),
ServerErrors(Vec<ChalkError>),
}Expand description
Everything that can go wrong when using the Chalk client.
Variants§
Config(String)
A configuration problem — missing credentials, bad YAML, etc.
Auth(String)
An authentication failure — could not exchange credentials for a token.
Http(Error)
An HTTP-level error from the reqwest library (DNS failure, timeout,
TLS handshake error, etc.).
Api
The Chalk API returned an HTTP success status but the response body
contained an error we couldn’t map to ServerErrors. This is a
catch-all for unexpected API-level failures.
Fields
Json(Error)
Failed to serialize or deserialize JSON.
Yaml(Error)
Failed to parse a YAML configuration file (e.g. ~/.chalk.yml).
Arrow(ArrowError)
An error from the Apache Arrow library (e.g. when encoding/decoding Arrow IPC for bulk queries).
Io(Error)
A standard I/O error (file not found, permission denied, etc.).
Grpc(Box<Status>)
gRPC protocol error (e.g. deadline exceeded, unavailable).
GrpcTransport(Error)
gRPC transport/connection error.
ServerErrors(Vec<ChalkError>)
The Chalk server returned one or more structured errors in its response.
Trait Implementations§
Source§impl Debug for ChalkClientError
impl Debug for ChalkClientError
Source§impl Display for ChalkClientError
impl Display for ChalkClientError
Source§impl Error for ChalkClientError
impl Error for ChalkClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ArrowError> for ChalkClientError
impl From<ArrowError> for ChalkClientError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Source§impl From<Error> for ChalkClientError
impl From<Error> for ChalkClientError
Source§impl From<Error> for ChalkClientError
impl From<Error> for ChalkClientError
Source§impl From<Error> for ChalkClientError
impl From<Error> for ChalkClientError
Source§impl From<Error> for ChalkClientError
impl From<Error> for ChalkClientError
Source§impl From<Error> for ChalkClientError
impl From<Error> for ChalkClientError
Auto Trait Implementations§
impl Freeze for ChalkClientError
impl !RefUnwindSafe for ChalkClientError
impl Send for ChalkClientError
impl Sync for ChalkClientError
impl Unpin for ChalkClientError
impl UnsafeUnpin for ChalkClientError
impl !UnwindSafe for ChalkClientError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.