Enum odbc_iter::DataAccessError
source · pub enum DataAccessError {
OdbcError(DiagnosticRecord, &'static str),
DatumAccessError(DatumAccessError),
FromRowError(Box<dyn Error>),
UnexpectedNumberOfRows(&'static str),
}
Expand description
Errors related to data access of query result set.
This error can happen when iterating rows of executed query result set.
For convenience this error can be converted into QueryError
.
Variants§
OdbcError(DiagnosticRecord, &'static str)
DatumAccessError(DatumAccessError)
FromRowError(Box<dyn Error>)
UnexpectedNumberOfRows(&'static str)
Trait Implementations§
source§impl Debug for DataAccessError
impl Debug for DataAccessError
source§impl Display for DataAccessError
impl Display for DataAccessError
source§impl Error for DataAccessError
impl Error for DataAccessError
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<DataAccessError> for QueryError
impl From<DataAccessError> for QueryError
source§fn from(err: DataAccessError) -> QueryError
fn from(err: DataAccessError) -> QueryError
Converts to this type from the input type.
source§impl From<DatumAccessError> for DataAccessError
impl From<DatumAccessError> for DataAccessError
source§fn from(err: DatumAccessError) -> DataAccessError
fn from(err: DatumAccessError) -> DataAccessError
Converts to this type from the input type.
source§impl From<ErrorContext<DiagnosticRecord, &'static str>> for DataAccessError
impl From<ErrorContext<DiagnosticRecord, &'static str>> for DataAccessError
source§fn from(err: ErrorContext<DiagnosticRecord, &'static str>) -> DataAccessError
fn from(err: ErrorContext<DiagnosticRecord, &'static str>) -> DataAccessError
Converts to this type from the input type.