Enum oracle::Error
[−]
[src]
pub enum Error { OciError(DbError), DpiError(DbError), NullValue, ParseError(Box<Error>), Overflow(String, &'static str), InvalidTypeConversion(String, String), InvalidBindIndex(usize), InvalidBindName(String), InvalidColumnIndex(usize), InvalidColumnName(String), BindValueParamError, UninitializedBindValue, NoMoreData, InternalError(String), }
Enum listing possible errors from rust-oracle.
Variants
OciError(DbError)
Error from an underlying Oracle client library.
DpiError(DbError)
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(Box<Error>)
Error when conversion from a string to an Oracle value fails
Overflow(String, &'static str)
Error when conversion from a type to another fails due to overflow
InvalidTypeConversion(String, String)
Error when conversion from a type to another is not allowed.
InvalidBindIndex(usize)
Error when a bind parameter index is out of range. (one based)
InvalidBindName(String)
Error when a bind parameter name is not in the SQL.
InvalidColumnIndex(usize)
Error when a column index is out of range. (zero based)
InvalidColumnName(String)
Error when a column name is not in the SQL.
BindValueParamError
Error when bind_value arguments are incompatible.
UninitializedBindValue
Error when an uninitialized bind value is accessed. Bind values must be initialized by Statement.bind, Statement.execute or Connection.execute in advance.
NoMoreData
Error when no more rows exist in the SQL.
InternalError(String)
Internal error. When you get this error, please report it with a test case to reproduce it.
Trait Implementations
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<ParseOracleTypeError> for Error
[src]
fn from(err: ParseOracleTypeError) -> Self
[src]
Performs the conversion.
impl From<ParseIntError> for Error
[src]
fn from(err: ParseIntError) -> Self
[src]
Performs the conversion.
impl From<ParseFloatError> for Error
[src]
fn from(err: ParseFloatError) -> Self
[src]
Performs the conversion.
impl From<TryFromIntError> for Error
[src]
fn from(err: TryFromIntError) -> Self
[src]
Performs the conversion.