Struct yottadb::YDBError[][src]

pub struct YDBError {
    pub message: Vec<u8>,
    pub status: i32,
    // some fields omitted

An error returned by the underlying YottaDB library.

This error cannot be constructed manually.


message: Vec<u8>

YottaDB internally uses an error-handling mechanism similar to errno and perror. Since, in a threaded context, another error may occur before the application has a chance to call perror() (in YottaDB, $ZSTATUS), the stringified error must be returned at the same time as the status code.

status: i32

The status returned by a YottaDB function. This will be a YDB_ERR_* constant.

See also

Trait Implementations

impl Clone for YDBError[src]

impl Debug for YDBError[src]

impl Display for YDBError[src]

impl Eq for YDBError[src]

impl Error for YDBError[src]

impl Hash for YDBError[src]

impl PartialEq<YDBError> for YDBError[src]

impl StructuralEq for YDBError[src]

impl StructuralPartialEq for YDBError[src]

Auto Trait Implementations

impl RefUnwindSafe for YDBError[src]

impl Send for YDBError[src]

impl Sync for YDBError[src]

impl Unpin for YDBError[src]

impl UnwindSafe for YDBError[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.