#[non_exhaustive]pub enum ErrorKind {
Show 18 variants
OciError,
DpiError,
NullValue,
ParseError,
OutOfRange,
InvalidArgument,
InvalidTypeConversion,
InvalidBindIndex,
InvalidBindName,
InvalidColumnIndex,
InvalidColumnName,
InvalidAttributeName,
InvalidOperation,
UninitializedBindValue,
NoDataFound,
BatchErrors,
InternalError,
Other,
}
Expand description
A list of error categories.
It is used with the Error
type.
Use _
to match “all other errors” in match
expression because it has #[non_exhaustive]
attribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OciError
Error from an underlying Oracle client library.
DpiError
Error from an underlying ODPI-C layer.
NullValue
Error when NULL value is got but the target rust type cannot handle NULL.
Use Option<...>
in this case.
ParseError
Error when conversion from a string to an Oracle value fails
OutOfRange
Error when conversion from a type to another fails due to out-of-range
InvalidArgument
Error when an unacceptable argument is passed
InvalidTypeConversion
Error when conversion from a type to another is not allowed.
InvalidBindIndex
Error when the bind parameter index is out of range. (one based)
InvalidBindName
Error when the bind parameter name is not in the SQL.
InvalidColumnIndex
Error when the column index is out of range. (zero based)
InvalidColumnName
Error when the column name is not in the SQL.
InvalidAttributeName
Error when the specified attribute name is not found.
InvalidOperation
Error when invalid method is called such as calling execute for select statements.
UninitializedBindValue
Error when an uninitialized bind value is accessed. Bind values
must be initialized by Statement::bind
, Statement::execute
or Connection::execute
in advance.
NoDataFound
Error when no more rows exist in the SQL.
BatchErrors
Error when BatchBuilder::with_batch_errors
is set and Batch::execute
fails by supplied batch data.
See “Error Handling with batch errors”
InternalError
Internal error. When you get this error, please report it with a test case to reproduce it.
Other
A custom error that does not match any other error kind.
This is intended to be used outside of this crate.