Skip to main content
pub enum SqlError 
    Build(String),
    Parse(String),
    TypeConversion(String),
    ColumnNotFound(String),
    RowIndexOutOfBounds
        index: usize,
        len: usize,
    ,
    EmptyResult,
    Kinetica(KineticaError),

Error type for SQL operations

Variants

Build(String)

Query building error

Parse(String)

Result parsing error

TypeConversion(String)

Type conversion error

ColumnNotFound(String)

Column not found

RowIndexOutOfBounds

Row index out of bounds

Fields

index: usize
len: usize

EmptyResult

Empty result set when value expected

Underlying Kinetica error

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
1.30.0 · Source

fn source(&self) -> Option<&(dyn Error + ‘static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source

fn provide<‘a>(&‘a self, request: &mut Request<‘a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source

fn from(e: Error) -> Self

Converts to this type from the input type.
Converts to this type from the input type.
Source

fn from(e: SqlError) -> Self

Converts to this type from the input type.