[][src]Enum oracle::Error

pub enum Error {
    OciError(DbError),
    DpiError(DbError),
    NullValue,
    ParseError(Box<dyn Error + Send + Sync>),
    OutOfRange(String),
    InvalidTypeConversion(StringString),
    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<dyn 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(StringString)

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 Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<ParseFloatError> for Error[src]

impl From<ParseIntError> for Error[src]

impl From<ParseOracleTypeError> for Error[src]

impl<T> From<PoisonError<T>> for Error[src]

impl From<TryFromIntError> for Error[src]

impl From<Utf8Error> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err