Enum oracle::Error [−][src]
pub enum Error { OciError(DbError), DpiError(DbError), NullValue, ParseError(Box<Error + Send + Sync>), OutOfRange(String), InvalidTypeConversion(String, String), InvalidBindIndex(usize), InvalidBindName(String), InvalidColumnIndex(usize), InvalidColumnName(String), InvalidAttributeName(String), InvalidOperation(String), UninitializedBindValue, NoDataFound, 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 + Send + Sync>)
Error when conversion from a string to an Oracle value fails
OutOfRange(String)
Error when conversion from a type to another fails due to out-of-range
InvalidTypeConversion(String, String)
Error when conversion from a type to another is not allowed.
InvalidBindIndex(usize)
Error when the bind parameter index is out of range. (one based)
InvalidBindName(String)
Error when the bind parameter name is not in the SQL.
InvalidColumnIndex(usize)
Error when the column index is out of range. (zero based)
InvalidColumnName(String)
Error when the column name is not in the SQL.
InvalidAttributeName(String)
Error when the specified attribute name is not found.
InvalidOperation(String)
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.
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]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<ParseOracleTypeError> for Error
[src]
impl From<ParseOracleTypeError> for Error
fn from(err: ParseOracleTypeError) -> Self
[src]
fn from(err: ParseOracleTypeError) -> Self
Performs the conversion.
impl From<ParseIntError> for Error
[src]
impl From<ParseIntError> for Error
fn from(err: ParseIntError) -> Self
[src]
fn from(err: ParseIntError) -> Self
Performs the conversion.
impl From<ParseFloatError> for Error
[src]
impl From<ParseFloatError> for Error
fn from(err: ParseFloatError) -> Self
[src]
fn from(err: ParseFloatError) -> Self
Performs the conversion.
impl From<TryFromIntError> for Error
[src]
impl From<TryFromIntError> for Error
fn from(err: TryFromIntError) -> Self
[src]
fn from(err: TryFromIntError) -> Self
Performs the conversion.
impl From<Utf8Error> for Error
[src]
impl From<Utf8Error> for Error