[][src]Enum odbc_avro::OdbcAvroError

pub enum OdbcAvroError {
    NameNormalizationError(NameNormalizationError),
    AvroSchemaError {
        odbc_schema: Vec<ColumnType>,
        avro_schema: Value,
        err: String,
    },
    DatumAccessError(DatumAccessError),
    DataAccessError(DataAccessError),
    WriteError(String),
}

Errors that this library can produce.

Variants

NameNormalizationError(NameNormalizationError)

Problem normalizing name to Avro compatible one.

AvroSchemaError

Failed to generate correct Avro schema from database schema.

Fields of AvroSchemaError

odbc_schema: Vec<ColumnType>avro_schema: Valueerr: String
DatumAccessError(DatumAccessError)

Error accessing data set datum.

DataAccessError(DataAccessError)

Error accessing data set row.

WriteError(String)

Problem writing Avro data.

Trait Implementations

impl Debug for OdbcAvroError[src]

impl Display for OdbcAvroError[src]

impl Error for OdbcAvroError[src]

impl From<DataAccessError> for OdbcAvroError[src]

impl From<DatumAccessError> for OdbcAvroError[src]

impl From<NameNormalizationError> for OdbcAvroError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToErrorNoContext<T> for T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E, C> WrapContext<C> for E

type ContextError = ErrorContext<E, C>