Enum odbc_iter::QueryError
source · pub enum QueryError {
OdbcError(OdbcError),
BindError(DiagnosticRecord),
UnsupportedSqlDataType(UnsupportedSqlDataType),
ResultSetError(ResultSetError),
DataAccessError(DataAccessError),
}
Expand description
Errors related to execution of queries.
OdbcError
and DataAccessError
can be converted into QueryError
.
Variants§
OdbcError(OdbcError)
BindError(DiagnosticRecord)
UnsupportedSqlDataType(UnsupportedSqlDataType)
ResultSetError(ResultSetError)
DataAccessError(DataAccessError)
Trait Implementations§
source§impl Debug for QueryError
impl Debug for QueryError
source§impl Display for QueryError
impl Display for QueryError
source§impl Error for QueryError
impl Error for QueryError
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<BindError> for QueryError
impl From<BindError> for QueryError
source§fn from(err: BindError) -> QueryError
fn from(err: BindError) -> QueryError
Converts to this type from the input type.
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<ErrorContext<DiagnosticRecord, &'static str>> for QueryError
impl From<ErrorContext<DiagnosticRecord, &'static str>> for QueryError
source§fn from(err: ErrorContext<DiagnosticRecord, &'static str>) -> QueryError
fn from(err: ErrorContext<DiagnosticRecord, &'static str>) -> QueryError
Converts to this type from the input type.
source§impl From<OdbcError> for QueryError
impl From<OdbcError> for QueryError
source§fn from(err: OdbcError) -> QueryError
fn from(err: OdbcError) -> QueryError
Converts to this type from the input type.
source§impl From<ResultSetError> for QueryError
impl From<ResultSetError> for QueryError
source§fn from(err: ResultSetError) -> QueryError
fn from(err: ResultSetError) -> QueryError
Converts to this type from the input type.
source§impl From<UnsupportedSqlDataType> for QueryError
impl From<UnsupportedSqlDataType> for QueryError
source§fn from(err: UnsupportedSqlDataType) -> QueryError
fn from(err: UnsupportedSqlDataType) -> QueryError
Converts to this type from the input type.