pub enum KineticaError
Http(String),
Avro(String),
Api(String),
Unauthorized(String),
HostnameRegexFailure(String),
Connection(String),
Config(String),
FailoverDisabled(String),
HaUnavailable(String),
Exit(String),
Internal,
Caused
message: String,
source: Box<KineticaError>,
,
The main error type for all Kinetica operations.
All API calls return Result<T, KineticaError> to handle various failure modes.
The variant tells what kind of failure it was: a request that failed on every cluster it could reach is a KineticaError::Connection. The URL a request failed at is in its message.
Examples
Variants
HTTP/network communication error
Avro serialization/deserialization error
Server-side API error (returned by Kinetica)
Unauthorized access error (authentication failed)
Hostname regex mismatch error
Connection error (server not reachable or not running)
Configuration error (invalid parameters, missing permissions, etc.)
HA failover is disabled
HA failover unavailable (all clusters tried)
Server exit/shutdown in progress
Internal
Internal client error
Caused
An error reported in terms of the one that caused it.
Recovery paths use this to report what actually went wrong while keeping the underlying failure reachable through std::error::Error::source — a retry’s own failure is usually a consequence of the original, and replacing it loses the only useful message.
Implementations
impl KineticaError
Reports message, keeping source as the underlying cause.
pub fn root_cause(&self) -> &KineticaError
The error underneath this one, following the chain to its root.
Returns self when nothing is attached. Useful for inspecting what actually failed when an error has been re-reported by a recovery path.
Trait Implementations
impl Clone for KineticaError
fn clone(&self) -> KineticaError
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for KineticaError
impl Display for KineticaError
impl Error for KineticaError
fn description(&self) -> &str
use the Display impl or to_string()
replaced by Error::source, which can support downcasting